From 8580c9a4c51d3151574b37d5c106f16795278b1b Mon Sep 17 00:00:00 2001 From: Inani El Houssain Date: Thu, 19 Oct 2017 17:55:44 +0100 Subject: [PATCH] Update PimpleContainer.php --- src/Framework/Container/PimpleContainer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Framework/Container/PimpleContainer.php b/src/Framework/Container/PimpleContainer.php index 561d6f9..35b94be 100644 --- a/src/Framework/Container/PimpleContainer.php +++ b/src/Framework/Container/PimpleContainer.php @@ -24,7 +24,7 @@ public function __construct(Container $container) */ public function get($id) { - if (!isset($this->container[$id])) { + if (!$this->has($id)) { throw new NotFoundException(sprintf('Identifier "%s" is not defined in container.', $id)); } return $this->container[$id]; @@ -38,4 +38,4 @@ public function has($id) { return isset($this->container[$id]); } -} \ No newline at end of file +}