Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e9d3e1

Browse files
Using the container to get the Artisan's instance on the __call() method.
The call to $this->getArtisan() ocurred in an infinite loop when calling a command from within a controller or route.
1 parent 17f7fa8 commit 8e9d3e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Illuminate/Foundation/Artisan.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected function getArtisan()
7979
*/
8080
public function __call($method, $parameters)
8181
{
82-
return call_user_func_array(array($this->getArtisan(), $method), $parameters);
82+
return call_user_func_array(array($this->app['artisan'], $method), $parameters);
8383
}
8484

85-
}
85+
}

0 commit comments

Comments
 (0)