PHP 클래스 Go\Core\CachedAspectLoader

상속: extends AspectLoader
파일 보기 프로젝트 열기: goaop/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$cacheDir null | string Path to the cache directory
$cacheFileMode integer File mode for the cache files
$loaderId string Identifier of original loader

공개 메소드들

메소드 설명
__construct ( Go\Core\AspectContainer $container, string $loaderId, array $options = [] ) Cached loader constructor
__get ( $name )
load ( Go\Aop\Aspect $aspect )
registerLoaderExtension ( Go\Core\AspectLoaderExtension $loader )

보호된 메소드들

메소드 설명
loadFromCache ( string $fileName ) : array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] Loads pointcuts and advisors from the file
saveToCache ( array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] $items, string $fileName ) Save pointcuts and advisors to the file

메소드 상세

__construct() 공개 메소드

Cached loader constructor
public __construct ( Go\Core\AspectContainer $container, string $loaderId, array $options = [] )
$container Go\Core\AspectContainer Instance of container
$loaderId string Original loader identifier
$options array List of kernel options

__get() 공개 메소드

public __get ( $name )

load() 공개 메소드

public load ( Go\Aop\Aspect $aspect )
$aspect Go\Aop\Aspect

loadFromCache() 보호된 메소드

Loads pointcuts and advisors from the file
protected loadFromCache ( string $fileName ) : array | Go\Aop\Pointcut[] | Go\Aop\Advisor[]
$fileName string Name of the file with cache
리턴 array | Go\Aop\Pointcut[] | Go\Aop\Advisor[]

registerLoaderExtension() 공개 메소드

public registerLoaderExtension ( Go\Core\AspectLoaderExtension $loader )
$loader Go\Core\AspectLoaderExtension

saveToCache() 보호된 메소드

Save pointcuts and advisors to the file
protected saveToCache ( array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] $items, string $fileName )
$items array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] List of items to store
$fileName string Name of the file with cache

프로퍼티 상세

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

Path to the cache directory
protected null|string $cacheDir
리턴 null | string

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

File mode for the cache files
protected int $cacheFileMode
리턴 integer

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

Identifier of original loader
protected string $loaderId
리턴 string