Property | Type | Description | |
---|---|---|---|
$appDir | string | null | ||
$cacheDir | string | null | ||
$cacheState | array | Cached metadata for transformation state for the concrete file | |
$fileMode | integer | File mode | |
$kernel | |||
$newCacheState | array | New metadata items, that was not present in $cacheState | |
$options | array |
Method | Description | |
---|---|---|
__construct ( |
||
__destruct ( ) | Automatic destructor saves all new changes into the cache | |
flushCacheState ( ) | Flushes the cache state into the file | |
getCacheDir ( ) : null | string | Returns current cache directory for aspects, can be bull | |
getCachePathForResource ( string $resource ) : boolean | string | ||
queryCacheState ( string | null $resource = null ) : array | null | Tries to return an information for queried resource | |
setCacheDir ( string $cacheDir ) | Configures a new cache directory for aspects | |
setCacheState ( string $resource, array $metadata ) | Put a record about some resource in the cache |
public __construct ( |
||
$kernel |
public getCacheDir ( ) : null | string | ||
return | null | string |
public setCacheDir ( string $cacheDir ) | ||
$cacheDir | string | New cache directory |
public setCacheState ( string $resource, array $metadata ) | ||
$resource | string | Name of the file |
$metadata | array | Miscellaneous information about resource |
protected array $cacheState | ||
return | array |
protected array $newCacheState | ||
return | array |