I have a package with admin/site/library/plugins/media installers.
I want to use a namespace on the pkg script on the postflight.
use Kunena\Forum\Libraries\Install\KunenaModelInstall;
On the postflight:
$installer = new KunenaModelInstall;
$installer->createMenu();
That the namespace is already registered at autoload_psr4 file.
Class 'Kunena\Forum\Libraries\Install\KunenaModelInstall' not found
Nightly build J4
Kunena 6.0 nightly build: www.kunena.org/download on the bottom is the nightly build.
Labels |
Added:
?
|
We have found a workaround for it : Kunena/Kunena-Forum@85c6386
I guess the best place would be somewhere here: https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Installer/InstallerAdapter.php#L1005 right? So the new names are loaded just before the script.php is executed right?
I'am agree with you
Can you do a PR? So we can finally fix this in the core and you can get rid of your workaround?
Labels |
Added:
?
No Code Attached Yet
Removed: ? |
Someone has an idea on this ?