Property | Type | Description | |
---|---|---|---|
$cacheDir | null | string | Path to the cache directory | |
$cacheFileMode | integer | File mode for the cache files | |
$loaderId | string | Identifier of original loader |
Method | Description | |
---|---|---|
__construct ( Go\Core\AspectContainer $container, string $loaderId, array $options = [] ) | Cached loader constructor | |
__get ( $name ) | ||
load ( Go\Aop\Aspect $aspect ) | ||
registerLoaderExtension ( Go\Core\AspectLoaderExtension $loader ) |
Method | Description | |
---|---|---|
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 |
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 |
protected loadFromCache ( string $fileName ) : array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] | ||
$fileName | string | Name of the file with cache |
return | array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] |
public registerLoaderExtension ( Go\Core\AspectLoaderExtension $loader ) | ||
$loader | Go\Core\AspectLoaderExtension |
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 |
protected int $cacheFileMode | ||
return | integer |