registerAlias no more working

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Locked
kmchen
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 108
Joined: Sat Oct 21, 2006 12:57 am
Location: marseille (13) france
Contact:

registerAlias no more working

Post by kmchen » Wed Dec 08, 2021 10:21 am

I have a library loaded using a system plugin like this:

Code: Select all

class plgSystemLef extends JPlugin
{
	public function onAfterInitialise()
	{
		JLoader::registerNamespace('mylib', JPATH_LIBRARIES);
		JLoader::registerPrefix('L', JPATH_LIBRARIES . '/mylib');
		JLoader::registerAlias 	('LLog', "\mylib\Log");
	}
It was working fine in any part of my extensions just using

Code: Select all

LLog::anymethod()
Now (since I launched eclipse build project ?) the same code gives error
Class 'LLog' not found
Could it be a composer problem ?

Locked

Return to “Joomla! 3.x Coding”