public function service($name)
    {
        if (!$this->services->offsetExists($name)) {
            throw new Exception(sprintf(Exception::SERVICE_NOT_EXISTS, $name));
        }

        return $this->services->offsetGet($name);
    }
public function service($name)
    {
        if (!$this->services->offsetExists($name)) {
            throw new Exception(sprintf(Exception::SERVICE_NOT_EXISTS, $name));
        }

        return $this->services->offsetGet($name);
    }
public function service ( $ name ) { if ( ! $ this -> services -> offsetExists ( $ name ) ) { throw new Exception ( sprintf ( Exception :: SERVICE_NOT_EXISTS , $ name ) ) ; } return $ this -> services -> offsetGet ( $ name ) ; }
Get a service.

@param string $name The name of the service

@return \Subbly\Api\Service\Service

@throws \Subbly\Api\Exception If the service name does not exists

@api
Get a service .