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();
파일 보기
프로젝트 열기: ppi/framework
1 사용 예제들
공개 프로퍼티들
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
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 a namespace to the autoloader path.
Add some items to the class config.
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 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 |
|