public function getService($service)
    {
        if (!isset($this->services[$service])) {
            throw new \InvalidArgumentException(sprintf('Service %s not found', $service));
        }
        return $this->services[$service];
    }
public function getService($service)
    {
        if (!isset($this->services[$service])) {
            throw new \InvalidArgumentException(sprintf('Service %s not found', $service));
        }
        return $this->services[$service];
    }
public function getService ( $ service ) { if ( ! isset ( $ this -> services [ $ service ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Service %s not found' , $ service ) ) ; } return $ this -> services [ $ service ] ; }
Getter of a service

@param string $service
@throws \InvalidArgumentException
@return mixed
Getter of a service