private function initialize() { $this->cacheDriver = $this->configuration->getMetadataCacheImpl(); $this->driver = $this->configuration->getMetadataDriverImpl(); if (null === $this->evm) { $this->evm = new EventManager(); } $this->initialized = true; }