PHP 클래스 Go\Instrument\ClassLoading\CachePathManager

Can be extended to get a more sophisticated real-to-cached code mapping
파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$appDir string | null
$cacheDir string | null
$cacheState array Cached metadata for transformation state for the concrete file
$fileMode integer File mode
$kernel Go\Core\AspectKernel
$newCacheState array New metadata items, that was not present in $cacheState
$options array

공개 메소드들

메소드 설명
__construct ( AspectKernel $kernel )
__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

메소드 상세

__construct() 공개 메소드

public __construct ( AspectKernel $kernel )
$kernel Go\Core\AspectKernel

__destruct() 공개 메소드

This implementation is not thread-safe, so be care
public __destruct ( )

flushCacheState() 공개 메소드

Flushes the cache state into the file
public flushCacheState ( )

getCacheDir() 공개 메소드

Returns current cache directory for aspects, can be bull
public getCacheDir ( ) : null | string
리턴 null | string

getCachePathForResource() 공개 메소드

public getCachePathForResource ( string $resource ) : boolean | string
$resource string
리턴 boolean | string

queryCacheState() 공개 메소드

Tries to return an information for queried resource
public queryCacheState ( string | null $resource = null ) : array | null
$resource string | null Name of the file or null to get all information
리턴 array | null Information or null if no record in the cache

setCacheDir() 공개 메소드

Configures a new cache directory for aspects
public setCacheDir ( string $cacheDir )
$cacheDir string New cache directory

setCacheState() 공개 메소드

This data will be persisted during object destruction
public setCacheState ( string $resource, array $metadata )
$resource string Name of the file
$metadata array Miscellaneous information about resource

프로퍼티 상세

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

protected string|null $appDir
리턴 string | null

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

protected string|null $cacheDir
리턴 string | null

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

Cached metadata for transformation state for the concrete file
protected array $cacheState
리턴 array

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

File mode
protected int $fileMode
리턴 integer

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

protected AspectKernel,Go\Core $kernel
리턴 Go\Core\AspectKernel

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

New metadata items, that was not present in $cacheState
protected array $newCacheState
리턴 array

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

protected array $options
리턴 array