Skip to content

Commit 67670d5

Browse files
committed
Use Container class instead of "app" helper
1 parent 7432b8b commit 67670d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Response.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ protected function pipelineAvailable()
3737

3838
protected function getContainer()
3939
{
40-
if (function_exists("app")) {
41-
$this->container = app();
40+
if (is_null($this->container) && class_exists(Container::class)) {
41+
$this->container = Container::getInstance();
4242
}
4343
return $this->container;
4444
}

0 commit comments

Comments
 (0)