Свойство | Тип | Описание | |
---|---|---|---|
$_classes | array | ||
$_namespaces | array |
Метод | Описание | |
---|---|---|
___autoload ( string $className ) : boolean | Makes the work of autoload registered classes | |
__construct ( string $manaPHPDir = null ) | Loader constructor. | |
dump ( ) | ||
registerClasses ( array $classes, boolean $merge = true ) : static | Register classes and their locations | |
registerNamespaces ( array $namespaces, boolean $merge = true ) : static | Register namespaces and their related directories |
Метод | Описание | |
---|---|---|
___requireFile ( string $file ) : true | If a file exists, require it from the file system. |
public ___autoload ( string $className ) : boolean | ||
$className | string | |
Результат | boolean |
protected ___requireFile ( string $file ) : true | ||
$file | string | The file to require. |
Результат | true |
public __construct ( string $manaPHPDir = null ) | ||
$manaPHPDir | string |
public registerClasses ( array $classes, boolean $merge = true ) : static | ||
$classes | array | |
$merge | boolean | |
Результат | static |
$loader->registerNamespaces(array(
’Example\\Base’ => ’vendor/example/base/’,
’Example\\Adapter’ => ’vendor/example/adapter/’,
’Example’ => ’vendor/example/’
));
public registerNamespaces ( array $namespaces, boolean $merge = true ) : static | ||
$namespaces | array | |
$merge | boolean | |
Результат | static |