Skip to content

Commit 56e508d

Browse files
author
Jeff Berry
committed
Lumen 5.2 support
1 parent b36db17 commit 56e508d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Console/Command/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function handle()
7979
/**
8080
* Get a fresh application instance.
8181
*
82-
* @return \Illuminate\Foundation\Application
82+
* @return \Illuminate\Contracts\Container\Container
8383
*/
8484
protected function getFreshApplication()
8585
{

src/Http/Middleware/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
use Closure;
66
use Exception;
77
use Dingo\Api\Routing\Router;
8+
use Illuminate\Contracts\Container\Container;
89
use Illuminate\Pipeline\Pipeline;
910
use Dingo\Api\Http\RequestValidator;
1011
use Dingo\Api\Http\Request as HttpRequest;
1112
use Dingo\Api\Contract\Debug\ExceptionHandler;
12-
use Illuminate\Contracts\Foundation\Application;
1313

1414
class Request
1515
{
@@ -59,7 +59,7 @@ class Request
5959
*
6060
* @return void
6161
*/
62-
public function __construct(Application $app, ExceptionHandler $exception, Router $router, RequestValidator $validator, array $middleware)
62+
public function __construct(Container $app, ExceptionHandler $exception, Router $router, RequestValidator $validator, array $middleware)
6363
{
6464
$this->app = $app;
6565
$this->exception = $exception;

src/Provider/ApiServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function register()
6565
'Dingo\Api\Console\Command\Docs',
6666
]);
6767

68-
if (class_exists('Illuminate\Foundation\Application', false)) {
68+
if (class_exists('Illuminate\Contracts\Foundation\Application', false)) {
6969
$this->commands([
7070
'Dingo\Api\Console\Command\Cache',
7171
'Dingo\Api\Console\Command\Routes',

0 commit comments

Comments
 (0)