src/RuntimeContainer.php
protected function traverseTree(string $current_service, string $service)
    {
        if (isset($this->children[$current_service])) {
            return $this->children[$current_service]->get($service);
        }

        $config = $this->config->get($current_service);
        if (isset($config['services'])) {
            $this->children[$current_service] = new self($config['services'], $this, $this->service[ContainerInterface::class]);

            return $this->children[$current_service]->get($service);
        }

        return $this->get($service);
    }
protected function traverseTree(string $current_service, string $service)
    {
        if (isset($this->children[$current_service])) {
            return $this->children[$current_service]->get($service);
        }

        $config = $this->config->get($current_service);
        if (isset($config['services'])) {
            $this->children[$current_service] = new self($config['services'], $this, $this->service[ContainerInterface::class]);

            return $this->children[$current_service]->get($service);
        }

        return $this->get($service);
    }
protected function traverseTree ( string $ current_service , string $ service ) { if ( isset ( $ this -> children [ $ current_service ] ) ) { return $ this -> children [ $ current_service ] -> get ( $ service ) ; } $ config = $ this -> config -> get ( $ current_service ) ; if ( isset ( $ config [ 'services' ] ) ) { $ this -> children [ $ current_service ] = new self ( $ config [ 'services' ] , $ this , $ this -> service [ ContainerInterface :: class ] ) ; return $ this -> children [ $ current_service ] -> get ( $ service ) ; } return $ this -> get ( $ service ) ; }
Locate service.
Locate service .