PHP Class Xpressengine\Interception\Proxy\ProxyGenerator

Author: XE Developers ([email protected])
Mostrar archivo Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Property Type Description
$loader 프록시클래스 로더. 프록시 클래스를 동적으로 생성한 다음 로더를 사용하여 로드한다.
$passes 프록시 클래스의 코드를 생성할 때 사용되는 Pass 목록

Public Methods

Method Description
__construct ( Xpressengine\Interception\Proxy\Loader\Loader $loader, array $passes ) constructor.
clear ( ) : void 기생성된 Proxy 파일을 모두 삭제한다.
generate ( string $targetClass ) : string 주어진 타겟 클래스의 프록시 클래스를 생성하고, 로드한 다음 프록시 클래스명을 반환한다.

Protected Methods

Method Description
generateProxyDefinition ( ProxyConfig $config ) : Definition 프록시 명세(Definition)을 작성한다.
loadFile ( string $path ) : void load file

Method Details

__construct() public method

constructor.
public __construct ( Xpressengine\Interception\Proxy\Loader\Loader $loader, array $passes )
$loader Xpressengine\Interception\Proxy\Loader\Loader 프록시클래스 로더
$passes array Pass 목록

clear() public method

기생성된 Proxy 파일을 모두 삭제한다.
public clear ( ) : void
return void

generate() public method

비지니스 로직에서는 타겟 클래스 대신 프록시 클래스의 인스턴스를 생성하여 사용한다.
public generate ( string $targetClass ) : string
$targetClass string 프록시 클래스를 생성할 타겟 클래스
return string

generateProxyDefinition() protected method

프록시 명세(Definition)을 작성한다.
protected generateProxyDefinition ( ProxyConfig $config ) : Definition
$config ProxyConfig 프록시 설정
return Definition

loadFile() protected method

load file
protected loadFile ( string $path ) : void
$path string file path
return void

Property Details

$loader protected_oe property

프록시클래스 로더. 프록시 클래스를 동적으로 생성한 다음 로더를 사용하여 로드한다.
protected $loader

$passes protected_oe property

프록시 클래스의 코드를 생성할 때 사용되는 Pass 목록
protected $passes