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