PHP 클래스 Go\Instrument\ClassLoading\AopComposerLoader

파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$fileEnumerator Go\Instrument\FileSystem\Enumerator File enumerator
$options array AOP kernel options
$original Composer\Autoload\ClassLoader Instance of original autoloader

공개 메소드들

메소드 설명
__construct ( Composer\Autoload\ClassLoader $original, Go\Core\AspectContainer $container, array $options = [] ) Constructs an wrapper for the composer loader
findFile ( string $class ) : string | false Finds either the path to the file where the class is defined, or gets the appropriate php://filter stream for the given class.
init ( array $options = [], Go\Core\AspectContainer $container ) : boolean Initialize aspect autoloader
loadClass ( $class ) Autoload a class by it's name
wasInitialized ( ) : boolean Whether or not loader was initialized

메소드 상세

__construct() 공개 메소드

Constructs an wrapper for the composer loader
public __construct ( Composer\Autoload\ClassLoader $original, Go\Core\AspectContainer $container, array $options = [] )
$original Composer\Autoload\ClassLoader Instance of current loader
$container Go\Core\AspectContainer Instance of the container
$options array Configuration options

findFile() 공개 메소드

Finds either the path to the file where the class is defined, or gets the appropriate php://filter stream for the given class.
public findFile ( string $class ) : string | false
$class string
리턴 string | false The path/resource if found, false otherwise.

init() 공개 정적인 메소드

Replaces original composer autoloader with wrapper
public static init ( array $options = [], Go\Core\AspectContainer $container ) : boolean
$options array Aspect kernel options
$container Go\Core\AspectContainer
리턴 boolean was initialization sucessful or not

loadClass() 공개 메소드

Autoload a class by it's name
public loadClass ( $class )

wasInitialized() 공개 정적인 메소드

Whether or not loader was initialized
public static wasInitialized ( ) : boolean
리턴 boolean

프로퍼티 상세

$fileEnumerator 보호되어 있는 프로퍼티

File enumerator
protected Enumerator,Go\Instrument\FileSystem $fileEnumerator
리턴 Go\Instrument\FileSystem\Enumerator

$options 보호되어 있는 프로퍼티

AOP kernel options
protected array $options
리턴 array

$original 보호되어 있는 프로퍼티

Instance of original autoloader
protected ClassLoader,Composer\Autoload $original
리턴 Composer\Autoload\ClassLoader