Skip to content

Commit

Permalink
Symfony5 (#179)
Browse files Browse the repository at this point in the history
* Symfony5 support
  • Loading branch information
benji07 authored and markitosgv committed Dec 5, 2019
1 parent 0ed26a8 commit fd0e429
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ matrix:
env: SYMFONY_VERSION=4.4.*
- php: 7.3
env: SYMFONY_VERSION=4.4.*
# 5.0.*
- php: 7.2
env: SYMFONY_VERSION=5.0.*
- php: 7.3
env: SYMFONY_VERSION=5.0.*

cache:
directories:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The purpose of this bundle is manage refresh tokens with JWT (Json Web Tokens) i
Prerequisites
-------------

This bundle requires Symfony 3.3+ or 4.0+.
This bundle requires Symfony 3.4+, 4.0+ or 5.0+.

If you want to use this bundle with previous Symfony versions, please use 0.2.x releases.

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
],
"require" : {
"php": "^5.5.9|>=7.0.8",
"symfony/framework-bundle": "~3.4|~4.0",
"symfony/validator": "~3.4|~4.0",
"symfony/framework-bundle": "~3.4|~4.0|~5.0",
"symfony/validator": "~3.4|~4.0|~5.0",
"lexik/jwt-authentication-bundle": "^1.1|^2.0@dev"
},
"require-dev": {
"doctrine/doctrine-bundle": "~1.4",
"doctrine/doctrine-bundle": "~1.4|~2.0",
"doctrine/mongodb-odm-bundle": "^3.4|^4.0",
"doctrine/orm": "^2.4.8",
"phpspec/phpspec": "^3.0|^4.0|^5.0|^6.0"
Expand Down
2 changes: 2 additions & 0 deletions spec/Service/RefreshTokenSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public function let(RefreshTokenAuthenticator $authenticator, RefreshTokenProvid
$ttlUpdate = false;
$providerKey = 'testkey';

$eventDispatcher->dispatch(Argument::any(), Argument::any())->willReturn(Argument::any());

$this->beConstructedWith($authenticator, $provider, $successHandler, $failureHandler, $refreshTokenManager, $ttl, $providerKey, $ttlUpdate, $eventDispatcher);
}

Expand Down

0 comments on commit fd0e429

Please sign in to comment.