src/Application/Service/ServiceContainer.php
public function get($name)
    {
        if (!isset($this->services[$name])) {
            throw ServiceNotFoundException::fromName($name);
        }

        return $this->services[$name]($this);
    }
public function get($name)
    {
        if (!isset($this->services[$name])) {
            throw ServiceNotFoundException::fromName($name);
        }

        return $this->services[$name]($this);
    }
public function get ( $ name ) { if ( ! isset ( $ this -> services [ $ name ] ) ) { throw ServiceNotFoundException :: fromName ( $ name ) ; } return $ this -> services [ $ name ] ( $ this ) ; }
Retrieves a service by name

@param string $name The service name

@return mixed

@throws ServiceNotFoundException When the service is not found
Retrieves a service by name