/** * Initializes the Object ObjectManager and its collaborators * * @return void * @author Robert Lemke <*****@*****.**> */ public function initializeManager() { $rawFLOW3ObjectConfigurations = $this->configurationManager->getConfiguration(\F3\FLOW3\Configuration\ConfigurationManager::CONFIGURATION_TYPE_OBJECTS, 'FLOW3'); foreach ($rawFLOW3ObjectConfigurations as $objectName => $rawFLOW3ObjectConfiguration) { $this->setObjectConfiguration(\F3\FLOW3\Object\Configuration\ConfigurationBuilder::buildFromConfigurationArray($objectName, $rawFLOW3ObjectConfiguration, 'FLOW3 Object ObjectManager (pre-initialization)')); } $this->registerObject('F3\\FLOW3\\Object\\ObjectManagerInterface', __CLASS__, $this); $this->registerObject('F3\\FLOW3\\Object\\ObjectBuilder', get_class($this->objectBuilder), $this->objectBuilder); $this->registerObject('F3\\FLOW3\\Object\\ObjectFactoryInterface', get_class($this->objectFactory), $this->objectFactory); $this->registerObject('F3\\FLOW3\\Object\\RegistryInterface', get_class($this->singletonObjectsRegistry), $this->singletonObjectsRegistry); $this->objectBuilder->injectObjectManager($this); $this->objectBuilder->injectObjectFactory($this->objectFactory); $this->objectFactory->injectObjectManager($this); $this->objectFactory->injectObjectBuilder($this->objectBuilder); }