PHP 클래스 Go\Instrument\Transformer\FilterInjectorTransformer

상속: implements Go\Instrument\Transformer\SourceTransformer
파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cachePathManager Go\Instrument\ClassLoading\CachePathManager | null
$filterName string Name of the filter to inject
$kernel Go\Core\AspectKernel | null
$options array Kernel options

공개 메소드들

메소드 설명
__construct ( AspectKernel $kernel, string $filterName, CachePathManager $cacheManager ) Class constructor
rewrite ( string $originalResource, string $originalDir = '' ) : string Replace source path with correct one
transform ( StreamMetaData $metadata ) : void | boolean Wrap all includes into rewrite filter

보호된 메소드들

메소드 설명
configure ( AspectKernel $kernel, string $filterName, CachePathManager $cacheManager ) Static configurator for filter

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( AspectKernel $kernel, string $filterName, CachePathManager $cacheManager )
$kernel Go\Core\AspectKernel Kernel to take configuration from
$filterName string Name of the filter to inject
$cacheManager Go\Instrument\ClassLoading\CachePathManager Manager for cache files

configure() 보호된 정적인 메소드

Static configurator for filter
protected static configure ( AspectKernel $kernel, string $filterName, CachePathManager $cacheManager )
$kernel Go\Core\AspectKernel Kernel to use for configuration
$filterName string Name of the filter to inject
$cacheManager Go\Instrument\ClassLoading\CachePathManager Cache manager

rewrite() 공개 정적인 메소드

This operation can check for cache, can rewrite paths, add additional filters and much more
public static rewrite ( string $originalResource, string $originalDir = '' ) : string
$originalResource string Initial resource to include
$originalDir string Path to the directory from where include was called for resolving relative resources
리턴 string Transformed path to the resource

transform() 공개 메소드

Wrap all includes into rewrite filter
public transform ( StreamMetaData $metadata ) : void | boolean
$metadata StreamMetaData Metadata for source
리턴 void | boolean Return false if transformation should be stopped

프로퍼티 상세

$cachePathManager 보호되어 있는 정적으로 프로퍼티

protected static CachePathManager,Go\Instrument\ClassLoading|null $cachePathManager
리턴 Go\Instrument\ClassLoading\CachePathManager | null

$filterName 보호되어 있는 정적으로 프로퍼티

Name of the filter to inject
protected static string $filterName
리턴 string

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

protected static AspectKernel,Go\Core|null $kernel
리턴 Go\Core\AspectKernel | null

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

Kernel options
protected static array $options
리턴 array