JClassLoader

Decorate Composer ClassLoader for Joomla!

For backward compatibility due to class aliasing in the CMS, the loadClass() method was modified to call the JLoader::applyAliasFor() method.

since

3.4

package

Joomla.Libraries

Methods

__construct

Constructor

__construct(\Composer\Autoload\ClassLoader $loader) 
since

3.4

Arguments

$loader

\Composer\Autoload\ClassLoaderComposer autoloader

loadClass

Loads the given class or interface.

loadClass(string $class) : boolean|null
since

3.4

Arguments

$class

stringThe name of the class

Response

boolean|nullTrue if loaded, null otherwise

Properties

loader

The composer class loader

Type(s)

\Composer\Autoload\ClassLoader