class ModifiedPsr4ClassLoader implements ClassLoaderInterface (View source)

A PSR-4 compatible class loader.

See http://www.php-fig.org/psr/psr-4/

Properties

private array $prefixes

Methods

addPrefix(string $prefix, string $baseDir)

No description

string|null
findFile(string $class)

No description

bool
loadClass(string $class)

No description

register(bool $prepend = false)

Registers this instance as an autoloader.

unregister()

Removes this instance from the registered autoloaders.

Details

addPrefix(string $prefix, string $baseDir)

No description

Parameters

string $prefix
string $baseDir

string|null findFile(string $class)

No description

Parameters

string $class

Return Value

string|null

bool loadClass(string $class)

No description

Parameters

string $class

Return Value

bool

register(bool $prepend = false)

Registers this instance as an autoloader.

Parameters

bool $prepend

unregister()

Removes this instance from the registered autoloaders.