Skip to content

Commit

Permalink
Use Container class instead of "app" helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan770 committed Jun 11, 2019
1 parent 7432b8b commit 67670d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ protected function pipelineAvailable()

protected function getContainer()
{
if (function_exists("app")) {
$this->container = app();
if (is_null($this->container) && class_exists(Container::class)) {
$this->container = Container::getInstance();
}
return $this->container;
}
Expand Down

0 comments on commit 67670d5

Please sign in to comment.