@param Service\ConfigService $configService

@return $this
484258
public function setConfigService(Service\ConfigService $configService)
    {
        parent::setConfigService($configService);

        $this->command->setConfigService($configService);

        return $this;
    }
307906
public function setInServiceRoute($inServiceRoute)
    {
        if (!is_bool($inServiceRoute)) {
            throw new \InvalidArgumentException(
                __CLASS__ . ' ' . __METHOD__ . ': Not a boolean'
            );
        }

        $this->inServiceRoute = $inServiceRoute;

        return $this;
    }
351330
public function load(Config $config)
    {
        $sys = new Service\SystemService();

        $config->set('CWD', $sys->getCurrentWorkingDirectory());
    }
798482
public function webservice(WebserviceInterface $webservice = null)
    {
        if ($webservice === null) {
            return $this->_webservice;
        }

        $this->_webservice = $webservice;

        return $this;
    }
775852
public static function createServiceManager(array $config = [])
    {
        $serviceManager = new ServiceManager(new Config($config));

        $serviceManager->addInitializer(
            function ($instance, ServiceLocatorInterface $serviceLocator) {
                if ($instance instanceof ModelManagerAwareInterface) {
                    $instance->setModelManager($serviceLocator->get('modelmanager'));
                }
            }
        );

        $serviceManager->addInitializer(
            function ($instance, ServiceLocatorInterface $serviceLocator) {
                if ($instance instanceof ServiceLocatorAwareInterface) {
                    $instance->setServiceLocator($serviceLocator);
                }
            }
        );

        return $serviceManager;
    }
239830
public function setConfig($key, $value)
    {
        if (! is_object($value) || ! $value instanceof ConfigurableService) {
            $value = new ConfigurationService(array(ConfigurationService::OPTION_CONFIG => $value));
        }
        $value->setHeader($this->getConfigHeader($key));
        $this->registerService($this->getId().'/'.$key, $value);
        return true;
    }
1112992
public function setService($service)
    {
        $prefix = $this->getConfig('service_class_prefix');

        $this->service[$service] = $this->createInstance($service, $prefix, [$this->client]);
    }
1291953
public function addConfig(\Parable\Framework\Interfaces\Config $config)
    {
        $this->setMany($config->get());
        return $this;
    }
1157679
private function setConfigToConfiguratorService(array $configArr) : void
    {
        $config = $this->container->get(ConfigInterface::class);
        $config->setConfig($configArr);
    }
720654
public function registerTypesAndConfig(ConfigurationService $config)
    {
        $services = $this->container->getServiceIds();
        foreach ($services as $service) {
            if (substr($service, 0, 14) == "midnight_type.") {
                if (!$config->has("type", $service)) {
                    $this->container->get($service)->initialize();
                    $config->set("type", $service, $this->container->get($service)->getCacheLevel());
                }
            } elseif (substr($service, 0, 16) == "midnight_config.") {
                $serv = $this->container->get($service);
                $c = $serv->getConfiguration();
                foreach ($c as $key => $data) {
                    if (!$config->has("configuration", $key)) {
                        $config->set("configuration", $key, $data["default"]);
                    }
                }
                $toolbar = $serv->addToolbar($this->container->get("router"));
                foreach($toolbar as $name => $path){
                    if (!$config->has("toolbar", $name)) {
                        $config->set("toolbar", $name, $path);
                    }
                }
                $templates = $serv->registerTemplate();
                foreach($templates as $name => $template){
                    if (!$config->has("template", $template)) {
                        $config->set("template", $name, $template);
                    }
                }

            }
        }
    }
624837
public static function generalServiceManager(Iterable $serviceConfig = NULL, $selfRefNames= []) {
        if(!static::$serviceManager) {
            if(is_null($serviceConfig))
                throw new ServiceException(sprintf("First call of %s must pass a service configuration", __METHOD__), 13);

            /** @var ServiceManager $man */
            $man = static::$serviceManager = new static($serviceConfig);
            $man->selfReferenceNames = array_merge($man->selfReferenceNames, $selfRefNames);

            if($n = self::getGlobalVariableName())
                $GLOBALS[$n] = $man;
        }
        return static::$serviceManager;
    }
453840
public function set($name, $service, $shared = true)
    {
        return $this->setService($name, $service, $shared);
    }
89797
public function setConfigSection(\VinceT\AdminConfigurationBundle\Entity\ConfigSection $configSection)
    {
        $this->configSection = $configSection;

        return $this;
    }
366584
public function setService($name, $service)
    {
        $this->services[$name] = $service;
        $this->serviceConfiguration[$name]['persistent'] = true;
        return $this;
    }
219715
final protected function processConfiguration(array $configs)
    {
        $processor = new Processor();

        return $processor->process(self::$configTree->buildTree(), $configs);
    }
40565
public function setLanguageService(LanguageService $languageService = null)
    {
        $this->languageService = $languageService instanceof LanguageService ? $languageService : GeneralUtility::makeInstance(LanguageService::class);
        if ($this->getBackendUser()) {
            $this->languageService->init($this->getBackendUser()->uc['lang']);
        }
    }
846864
public function loadServices(array $config)
    {
        foreach ($this->loaders as $loader) {
            $loader->load($config, $this->container);
        }
        return $this;
    }