Skip to content

Commit 9f3e2e6

Browse files
author
Peter Kaukov
committed
Add laravie/api@51f9c85 as suggested by @crynobone .
Lumen stable isn't 5.3 yet. Thanks @hskrasek
1 parent 2a04050 commit 9f3e2e6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"illuminate/filesystem": "5.1.* || 5.2.* || 5.3.*",
3232
"illuminate/log": "5.1.* || 5.2.* || 5.3.*",
3333
"illuminate/pagination": "5.1.* || 5.2.* || 5.3.*",
34-
"laravel/lumen-framework": "5.1.* || 5.2.* || 5.3.*",
34+
"laravel/lumen-framework": "5.1.* || 5.2.*",
3535
"lucadegasperi/oauth2-server-laravel": "5.0.*",
3636
"mockery/mockery": "~0.9",
3737
"phpunit/phpunit": "^4.8 || ^5.0",

src/Routing/Adapter/Laravel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ public function prepareRouteForSerialization($route)
226226
*/
227227
public function gatherRouteMiddlewares($route)
228228
{
229+
if (method_exists($this->router, 'gatherRouteMiddleware')) {
230+
return $this->router->gatherRouteMiddleware($route);
231+
}
232+
229233
return $this->router->gatherRouteMiddlewares($route);
230234
}
231235

0 commit comments

Comments
 (0)