You are here

public function ProxyGenerator::getProxyFileName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php \Doctrine\Common\Proxy\ProxyGenerator::getProxyFileName()

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

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

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';
}