public function get($name) { if (!$this->has($name)) { throw new Exception\ServiceNotFoundException(sprintf("Service with name %s not found", $name)); } return $this->services[$name]; }