Neos\Flow\ResourceManagement\ResourceManager::initializeTargets PHP Метод

initializeTargets() защищенный Метод

Initializes the Target objects according to the current settings
protected initializeTargets ( ) : void
Результат void
    protected function initializeTargets()
    {
        foreach ($this->settings['resource']['targets'] as $targetName => $targetDefinition) {
            if (!isset($targetDefinition['target'])) {
                throw new Exception(sprintf('The configuration for the resource target "%s" defined in your settings has no valid "target" option. Please check the configuration syntax and make sure to specify a valid target class name.', $targetName), 1361467838);
            }
            if (!class_exists($targetDefinition['target'])) {
                throw new Exception(sprintf('The configuration for the resource target "%s" defined in your settings has not defined a valid "target" option. Please check the configuration syntax and make sure that the specified class "%s" really exists.', $targetName, $targetDefinition['target']), 1361467839);
            }
            $options = isset($targetDefinition['targetOptions']) ? $targetDefinition['targetOptions'] : [];
            $this->targets[$targetName] = new $targetDefinition['target']($targetName, $options);
        }
    }