Skip to content

Commit

Permalink
r lumen 8
Browse files Browse the repository at this point in the history
  • Loading branch information
dusterio committed Sep 26, 2020
1 parent 58a9869 commit 14fcdb4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Or if you prefer, edit `composer.json` manually:
```json
{
"require": {
"dusterio/lumen-passport": "^0.2.0"
"dusterio/lumen-passport": "^0.3.0"
}
}
```
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"php": ">=5.6.4",
"illuminate/database": "~5.3|~5.4|~5.5|~5.6|^6.0|^7.0|^8.0",
"illuminate/support": "~5.3|~5.4|~5.5|~5.6|^6.0|^7.0|^8.0",
"laravel/passport": ">=0.2.2"
"laravel/passport": ">=0.2.2",
"laminas/laminas-diactoros": "^2.4"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/AccessTokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Laravel\Passport\Passport;
use Laravel\Passport\Token;
use Zend\Diactoros\Response as Psr7Response;
use Laminas\Diactoros\Response as Psr7Response;
use Psr\Http\Message\ServerRequestInterface;
use Dusterio\LumenPassport\LumenPassport;

Expand Down
2 changes: 1 addition & 1 deletion src/LumenPassport.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function tokensExpireIn(DateTimeInterface $date = null, $clientId
*/
public static function routes($callback = null, array $options = [])
{
if ($callback instanceof Application && preg_match('/(5\.[5-8]\..*)|(6\..*)|(7\..*)/', $callback->version())) $callback = $callback->router;
if ($callback instanceof Application && preg_match('/(5\.[5-8]\..*)|(6\..*)|(7\..*)|(8\..*)/', $callback->version())) $callback = $callback->router;

$callback = $callback ?: function ($router) {
$router->all();
Expand Down

0 comments on commit 14fcdb4

Please sign in to comment.