protected function storeService(string $name, array $config, $service)
    {
        if (false === $config['singleton']) {
            return $service;
        }
        $this->service[$name] = $service;

        if (isset($this->children[$name])) {
            $this->children[$name]->setParentService($service);
        }

        return $service;
    }
protected function storeService(string $name, array $config, $service)
    {
        if (false === $config['singleton']) {
            return $service;
        }
        $this->service[$name] = $service;

        if (isset($this->children[$name])) {
            $this->children[$name]->setParentService($service);
        }

        return $service;
    }
protected function storeService ( string $ name , array $ config , $ service ) { if ( false === $ config [ 'singleton' ] ) { return $ service ; } $ this -> service [ $ name ] = $ service ; if ( isset ( $ this -> children [ $ name ] ) ) { $ this -> children [ $ name ] -> setParentService ( $ service ) ; } return $ service ; }
Store service.
Store service .