container = $container; } public function get($id) { try { return $this->container->getService($id); } catch (NetteNotFoundException $prev) { throw AcclimateNotFoundException::fromPrevious($id, $prev); } catch (\Exception $prev) { throw AcclimateContainerException::fromPrevious($id, $prev); } } public function has($id) { return $this->container->hasService($id); } }