class ClassLoader (View source)

Class ClassLoader

Methods

__construct(FileMappingLoader $files = null, Psr0Loader $psr0 = null, Psr4Loader $psr4 = null)

Class init.

register()

register

$this
unregister()

unregister

$this
addPsr0(string|array $class, string $path = null)

addPsr0

$this
addPsr4(string|array $class, string $path = null)

addPsr4

$this
addMap(string|array $class, string $path = null)

addMap

getPsr0Loader()

Method to get property Psr0

setPsr0Loader(Psr0Loader $psr0)

Method to set property psr0

getPsr4Loader()

Method to get property Psr4

setPsr4Loader(Psr4Loader $psr4)

Method to set property psr4

getFilesLoader()

Method to get property Files

setFilesLoader(FileMappingLoader $files)

Method to set property files

Details

at line line 50
__construct(FileMappingLoader $files = null, Psr0Loader $psr0 = null, Psr4Loader $psr4 = null)

Class init.

Parameters

FileMappingLoader $files
Psr0Loader $psr0
Psr4Loader $psr4

at line line 62
ClassLoader register()

register

Return Value

ClassLoader

at line line 76
$this unregister()

unregister

Return Value

$this

at line line 93
$this addPsr0(string|array $class, string $path = null)

addPsr0

Parameters

string|array $class
string $path

Return Value

$this

at line line 118
$this addPsr4(string|array $class, string $path = null)

addPsr4

Parameters

string|array $class
string $path

Return Value

$this

at line line 143
$this addMap(string|array $class, string $path = null)

addMap

Parameters

string|array $class
string $path

Return Value

$this

at line line 165
Psr0Loader getPsr0Loader()

Method to get property Psr0

Return Value

Psr0Loader

at line line 177
ClassLoader setPsr0Loader(Psr0Loader $psr0)

Method to set property psr0

Parameters

Psr0Loader $psr0

Return Value

ClassLoader Return self to support chaining.

at line line 189
Psr4Loader getPsr4Loader()

Method to get property Psr4

Return Value

Psr4Loader

at line line 201
ClassLoader setPsr4Loader(Psr4Loader $psr4)

Method to set property psr4

Parameters

Psr4Loader $psr4

Return Value

ClassLoader Return self to support chaining.

at line line 213
FileMappingLoader getFilesLoader()

Method to get property Files

Return Value

FileMappingLoader

at line line 225
ClassLoader setFilesLoader(FileMappingLoader $files)

Method to set property files

Parameters

FileMappingLoader $files

Return Value

ClassLoader Return self to support chaining.