Doctrine\ODM\OrientDB\Proxy\ProxyFactory::__construct PHP Method

__construct() public method

Initializes a new instance of the ProxyFactory class that is connected to the given DocumentManager.
public __construct ( Manager $manager, string $proxyDir, string $proxyNamespace, integer $autoGenerate = AbstractProxyFactory::AUTOGENERATE_NEVER )
$manager Doctrine\ODM\OrientDB\Manager
$proxyDir string The directory to use for the proxy classes. It must exist.
$proxyNamespace string The namespace to use for the proxy classes.
$autoGenerate integer Whether to automatically generate proxy classes.
    public function __construct(Manager $manager, $proxyDir, $proxyNamespace, $autoGenerate = AbstractProxyFactory::AUTOGENERATE_NEVER)
    {
        $this->metadataFactory = $manager->getMetadataFactory();
        $this->uow = $manager->getUnitOfWork();
        $this->proxyNamespace = $proxyNamespace;
        $proxyGenerator = new ProxyGenerator($proxyDir, $proxyNamespace);
        $proxyGenerator->setPlaceholder('baseProxyInterface', 'Doctrine\\ODM\\OrientDB\\Proxy\\Proxy');
        parent::__construct($proxyGenerator, $this->metadataFactory, $autoGenerate);
    }