Skip to content

Commit

Permalink
Merge pull request #15 from akiyamaSM/patch-2
Browse files Browse the repository at this point in the history
Update PimpleContainer.php
  • Loading branch information
xujiajun authored Oct 20, 2017
2 parents 5e620ba + 8580c9a commit a649ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Framework/Container/PimpleContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -38,4 +38,4 @@ public function has($id)
{
return isset($this->container[$id]);
}
}
}

0 comments on commit a649ab4

Please sign in to comment.