Psr4ClassLoader

class Psr4ClassLoader

A PSR-4 compatible class loader.

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

Methods

addPrefix(string $prefix, string $baseDir)
string|null findFile(string $class)
bool loadClass(string $class)
register(bool $prepend = false)

Registers this instance as an autoloader.

unregister()

Removes this instance from the registered autoloaders.

Details

addPrefix(string $prefix, string $baseDir)

Parameters

string $prefix
string $baseDir

string|null findFile(string $class)

Parameters

string $class

Return Value

string|null

bool loadClass(string $class)

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.

doc_Symfony
2016-10-28 06:28:17
Comments
Leave a Comment

Please login to continue.