ClassLoader

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

Application

Methods

__construct

Constructor

__construct(\Composer\Autoload\ClassLoader loader) : mixed
since

3.4

Arguments

loader

\Composer\Autoload\ClassLoaderComposer autoloader

Response

mixed

loadClass

Loads the given class or interface.

loadClass(string class) : bool|null
since

3.4

Arguments

class

stringThe name of the class

Response

bool|nullTrue if loaded, null otherwise

Properties

loader

The Composer class loader

since

3.4

Type(s)

\Composer\Autoload\ClassLoader