public function get($service)
    {
        if ($this->has($service)) {
            return $this->container[$service];
        } else {
            throw new RuntimeException(sprintf(
                'Attempted to grab non-existing service "%s"', $service
            ));
        }
    }
public function get($service)
    {
        if ($this->has($service)) {
            return $this->container[$service];
        } else {
            throw new RuntimeException(sprintf(
                'Attempted to grab non-existing service "%s"', $service
            ));
        }
    }
public function get ( $ service ) { if ( $ this -> has ( $ service ) ) { return $ this -> container [ $ service ] ; } else { throw new RuntimeException ( sprintf ( 'Attempted to grab non-existing service "%s"' , $ service ) ) ; } }
Returns service's instance by its name

@param string $service Service name
@throws \RuntimeException if attempted to return non-existing service
@return object
Returns service s instance by its name