ProxyGenerator
class ProxyGenerator
타겟 클래스에 Interception를 적용하기 위하여 필요한 프록시 클래스를 생성하고, 로드한다.
Properties
protected Loader | $loader | ||
protected Pass[] | $passes |
Methods
void
clear()
기생성된 Proxy 파일을 모두 삭제한다.
string
generate(string $targetClass)
주어진 타겟 클래스의 프록시 클래스를 생성하고, 로드한 다음 프록시 클래스명을 반환한다.
void
loadFile(string $path)
load file
Details
at line 49
__construct(Loader $loader, array $passes)
constructor.
at line 60
void
clear()
기생성된 Proxy 파일을 모두 삭제한다.
at line 75
string
generate(string $targetClass)
주어진 타겟 클래스의 프록시 클래스를 생성하고, 로드한 다음 프록시 클래스명을 반환한다.
비지니스 로직에서는 타겟 클래스 대신 프록시 클래스의 인스턴스를 생성하여 사용한다.
at line 103
protected Definition
generateProxyDefinition(ProxyConfig $config)
프록시 명세(Definition)을 작성한다.
at line 119
protected void
loadFile(string $path)
load file