PHP 클래스 Kahlan\Jit\Patchers

파일 보기 프로젝트 열기: crysalead/kahlan

보호된 프로퍼티들

프로퍼티 타입 설명
$_patchers The registered patchers.

공개 메소드들

메소드 설명
add ( string $name, object $patcher ) : object | boolean Adds a patcher.
clear ( ) Removes all patchers.
exists ( string $name ) : boolean Checks if a patcher exist.
findFile ( $loader, $class, $file ) Runs file loader patchers.
get ( $name ) : object | boolean Gets a patcher.
patchable ( string $class ) : boolean Checks whether a class need to be patched or not.
process ( string $code, string $path = null ) : string Runs file patchers.
remove ( string $name ) Removes a patcher.

메소드 상세

add() 공개 메소드

Adds a patcher.
public add ( string $name, object $patcher ) : object | boolean
$name string The patcher name.
$patcher object A patcher.
리턴 object | boolean The added patcher instance or `false` on failure.

clear() 공개 메소드

Removes all patchers.
public clear ( )

exists() 공개 메소드

Checks if a patcher exist.
public exists ( string $name ) : boolean
$name string The patcher name.
리턴 boolean

findFile() 공개 메소드

Runs file loader patchers.
public findFile ( $loader, $class, $file )

get() 공개 메소드

Gets a patcher.
public get ( $name ) : object | boolean
리턴 object | boolean The patcher instance or `false` if not founded.

patchable() 공개 메소드

Checks whether a class need to be patched or not.
public patchable ( string $class ) : boolean
$class string The class to check.
리턴 boolean

process() 공개 메소드

Runs file patchers.
public process ( string $code, string $path = null ) : string
$code string The source code to process.
$path string The file path of the source code.
리턴 string The patched source code.

remove() 공개 메소드

Removes a patcher.
public remove ( string $name )
$name string The patcher name.

프로퍼티 상세

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

The registered patchers.
protected $_patchers