PHP Класс PPI\Framework\Autoload
It is able to load classes that use either:
* The technical interoperability standards for PHP 5.3 namespaces and
class names (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md);
Example usage:
PPI\Framework\Autoload::add('Symfony', PPI_VENDOR_PATH . '/path/to/src/Symfony')
PPI\Framework\Autoload::register();
Показать файл
Открыть проект
Примеры использования класса
Открытые свойства
Защищенные свойства (Protected)
Открытые методы
Метод |
Описание |
|
add ( string $key, string $path ) |
Add a namespace to the autoloader path. |
|
config ( array $config ) |
Add some items to the class config. |
|
exists ( string $key ) : boolean |
Check if a namespace has been registered. This is a workaround as the default self::$_options['loader']
class does not have an exists() method. |
|
register ( ) |
Register the autoloader namespaces or prefixes thus far. |
|
Описание методов
add()
публичный статический Метод
Add a namespace to the autoloader path.
config()
публичный статический Метод
Add some items to the class config.
exists()
публичный статический Метод
Check if a namespace has been registered. This is a workaround as the default self::$_options['loader']
class does not have an exists() method.
register()
публичный статический Метод
Register the autoloader namespaces or prefixes thus far.
Описание свойств
$_loader защищенное статическое свойство
protected static null|object $_loader |
Результат |
null | object |
|
$_options публичное статическое свойство
public static array $_options |
Результат |
array |
|
$_registeredNamespaces защищенное статическое свойство
protected static array $_registeredNamespaces |
Результат |
array |
|