You are here

public function ProxyGenerator::getProxyFileName in Plug 7

Generates the Proxy file name.

Parameters

string $className:

string $baseDirectory Optional base directory for proxy file name generation.: If not specified, the directory configured on the Configuration of the EntityManager will be used by this factory.

Return value

string

File

lib/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php, line 815

Class

ProxyGenerator
This factory is used to generate proxy classes. It builds proxies from given parameters, a template and class metadata.

Namespace

Doctrine\Common\Proxy

Code

public function getProxyFileName($className, $baseDirectory = null) {
  $baseDirectory = $baseDirectory ?: $this->proxyDirectory;
  return rtrim($baseDirectory, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . Proxy::MARKER . str_replace('\\', '', $className) . '.php';
}