Neos\Flow\ObjectManagement\Configuration\ConfigurationBuilder::injectSystemLogger PHP Метод

injectSystemLogger() публичный Метод

public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
$systemLogger Neos\Flow\Log\SystemLoggerInterface
Результат void
    public function injectSystemLogger(SystemLoggerInterface $systemLogger)
    {
        $this->systemLogger = $systemLogger;
    }

Usage Example

 /**
  * Initializes the the object configurations and some other parts of this Object Manager.
  *
  * @param array $packages An array of active packages to consider
  * @return void
  */
 public function initialize(array $packages)
 {
     $this->registeredClassNames = $this->registerClassFiles($packages);
     $this->reflectionService->buildReflectionData($this->registeredClassNames);
     $rawCustomObjectConfigurations = $this->configurationManager->getConfiguration(ConfigurationManager::CONFIGURATION_TYPE_OBJECTS);
     $configurationBuilder = new ConfigurationBuilder();
     $configurationBuilder->injectReflectionService($this->reflectionService);
     $configurationBuilder->injectSystemLogger($this->systemLogger);
     $this->objectConfigurations = $configurationBuilder->buildObjectConfigurations($this->registeredClassNames, $rawCustomObjectConfigurations);
     $this->setObjects($this->buildObjectsArray());
 }