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