public function get($serviceid) { if ($this->getContainer()->initialized($serviceid)) { return $this->getContainer()->get($serviceid); } throw new \RuntimeException(sprintf('Service "%s" has not been initialized.', $serviceid)); }