Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory::initialize PHP Method

initialize() protected method

Lazy initialization of this stuff, especially the metadata driver, since these are not needed at all when a metadata cache is active.
protected initialize ( )
    protected function initialize()
    {
        $this->driver = $this->config->getMetadataDriverImpl();
        $this->evm = $this->dm->getEventManager();
        $this->initialized = true;
    }