private function ProxyGenerator::generateNamespace in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php \Doctrine\Common\Proxy\ProxyGenerator::generateNamespace()
Generates the proxy namespace.
Parameters
\Doctrine\Common\Persistence\Mapping\ClassMetadata $class:
Return value
string
1 call to ProxyGenerator::generateNamespace()
- ProxyGenerator::generateProxyClass in vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Proxy/ ProxyGenerator.php - Generates a proxy class file.
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Proxy/ ProxyGenerator.php, line 331
Class
- ProxyGenerator
- This factory is used to generate proxy classes. It builds proxies from given parameters, a template and class metadata.
Namespace
Doctrine\Common\ProxyCode
private function generateNamespace(ClassMetadata $class) {
$proxyClassName = ClassUtils::generateProxyClassName($class
->getName(), $this->proxyNamespace);
$parts = explode('\\', strrev($proxyClassName), 2);
return strrev($parts[1]);
}