Xpressengine\Interception\Proxy\ProxyConfig::getProxyName PHP Method

getProxyName() public method

동적으로 생성할 프록시 파일의 이름을 조회한다.
public getProxyName ( ) : string
return string
    public function getProxyName()
    {
        return 'Proxy_' . str_replace('\\', '_', $this->class);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * 주어진 프록시설정에 해당하는 클래스파일이 존재하는지 확인한다.
  * checkFileTime가 설정돼 있으면 파일시간을 체크하여 판단한다.
  *
  * @param ProxyConfig $config 프록시 설정
  *
  * @return bool 클래스파일이 존재할 경우 true를 반환한다.
  */
 public function existProxyFile(ProxyConfig $config)
 {
     if ($this->hasProxyFile($config->getProxyName()) === false) {
         return false;
     }
     if ($this->checkFileTime === false) {
         return true;
     }
     $targetPath = $config->getTargetPath();
     $proxyPath = $this->getProxyPath($config->getProxyName());
     if (filemtime($targetPath) < filemtime($proxyPath)) {
         return true;
     }
 }
All Usage Examples Of Xpressengine\Interception\Proxy\ProxyConfig::getProxyName