You are here

public function AbstractProxyFactory::__construct in Plug 7

Parameters

\Doctrine\Common\Proxy\ProxyGenerator $proxyGenerator:

\Doctrine\Common\Persistence\Mapping\ClassMetadataFactory $metadataFactory:

bool|int $autoGenerate:

File

lib/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php, line 97

Class

AbstractProxyFactory
Abstract factory for proxy objects.

Namespace

Doctrine\Common\Proxy

Code

public function __construct(ProxyGenerator $proxyGenerator, ClassMetadataFactory $metadataFactory, $autoGenerate) {
  $this->proxyGenerator = $proxyGenerator;
  $this->metadataFactory = $metadataFactory;
  $this->autoGenerate = (int) $autoGenerate;
}