PHP 클래스 Go\Instrument\Transformer\MagicConstantTransformer

Additionally, ReflectionClass->getFileName() is also wrapped into normalizer method call
상속: extends BaseSourceTransformer
파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$rewriteToPath string Path to rewrite to (cache directory)
$rootPath string Root path of application

공개 메소드들

메소드 설명
__construct ( AspectKernel $kernel ) Class constructor
resolveFileName ( string $fileName ) : string Resolves file name from the cache directory to the real application root dir
transform ( StreamMetaData $metadata ) : void | boolean This method may transform the supplied source and return a new replacement for it

비공개 메소드들

메소드 설명
replaceMagicConstants ( StreamMetaData $metadata ) Replace only magic constants in the code

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( AspectKernel $kernel )
$kernel Go\Core\AspectKernel Instance of kernel

resolveFileName() 공개 정적인 메소드

Resolves file name from the cache directory to the real application root dir
public static resolveFileName ( string $fileName ) : string
$fileName string Absolute file name
리턴 string Resolved file name

transform() 공개 메소드

This method may transform the supplied source and return a new replacement for it
public transform ( StreamMetaData $metadata ) : void | boolean
$metadata StreamMetaData Metadata for source
리턴 void | boolean Return false if transformation should be stopped

프로퍼티 상세

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

Path to rewrite to (cache directory)
protected static string $rewriteToPath
리턴 string

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

Root path of application
protected static string $rootPath
리턴 string