FileLoader
class FileLoader implements Loader
이 클래스는 동적으로 생성된 프록시 클래스를 파일로 생성후 로딩한다.
Properties
private string | $path | ||
private bool | $checkFileTime | 이미 동일한 이름의 프록시 클래스 파일이 존재할 경우, 파일 시간을 비교하여 갱신할지의 여부 만약 true이면 target 클래스 파일의 수정시간이 프록시 클래스 파일의 생성시간보다 오래됐을 경우 갱신한다. |
Methods
__construct(string $path, bool $checkFileTime = false)
constructor.
string
getProxyPath(string $proxyName)
주어진 프록시 클래스의 파일경로를 반환한다.
bool
hasProxyFile(string $proxyName)
주어진 프록시 클래스에 해당하는 파일의 존재 여부를 조회한다.
bool
void
void
clear()
기생성된 Proxy 파일을 모두 삭제한다.
Details
at line 51
__construct(string $path, bool $checkFileTime = false)
constructor.
at line 64
string
getProxyPath(string $proxyName)
주어진 프록시 클래스의 파일경로를 반환한다.
at line 76
bool
hasProxyFile(string $proxyName)
주어진 프록시 클래스에 해당하는 파일의 존재 여부를 조회한다.
at line 90
bool
existProxyFile(ProxyConfig $config)
주어진 프록시설정에 해당하는 클래스파일이 존재하는지 확인한다.
checkFileTime가 설정돼 있으면 파일시간을 체크하여 판단한다.
at line 117
void
load(Definition $definition)
주어진 프록시 클래스 명세를 파일에 작성한 후 해당 클래스를 로드한다.
at line 136
void
clear()
기생성된 Proxy 파일을 모두 삭제한다.