PHP Класс Go\Core\CachedAspectLoader

Наследование: extends AspectLoader
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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