Skip to content

Commit

Permalink
Pass this as closure argument
Browse files Browse the repository at this point in the history
  • Loading branch information
levidurfee committed Aug 12, 2018
1 parent 8a08990 commit 2b40377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Container.php
Expand Up @@ -34,7 +34,7 @@ public function get($id)

if ($this->has($id)) {
if (is_callable($this->container[$id])) {
return $this->container[$id]();
return $this->container[$id]($this);
}

return $this->container[$id];
Expand Down

0 comments on commit 2b40377

Please sign in to comment.