Skip to content

Commit

Permalink
Require refresh token models to be Stringable (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker authored Jul 19, 2021
1 parent c752135 commit 939b8f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
- `Gesdinet\JWTRefreshTokenBundle\Request\Extractor\RequestBodyExtractor` - Decodes a JSON request body and loads the token from it
- `Gesdinet\JWTRefreshTokenBundle\Request\Extractor\RequestParameterExtractor` - Loads the refresh token by calling `$request->get()`
- Removed the `Gesdinet\JWTRefreshTokenBundle\Request\RequestRefreshToken` class, a `Gesdinet\JWTRefreshTokenBundle\Request\Extractor\ExtractorInterface` implementation should be used instead
- `Gesdinet\JWTRefreshTokenBundle\Model\RefreshTokenInterface` now extends `Stringable`, refresh token models now require a `__toString()` method
2 changes: 1 addition & 1 deletion Model/RefreshTokenInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Symfony\Component\Security\Core\User\UserInterface;

interface RefreshTokenInterface
interface RefreshTokenInterface extends \Stringable
{
/**
* Creates a new model instance based on the provided details.
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"symfony/event-dispatcher": "^3.4|^4.4|^5.2",
"symfony/http-foundation": "^3.4|^4.4|^5.2",
"symfony/http-kernel": "^3.4|^4.4|^5.2",
"symfony/polyfill-php80": "^1.15",
"symfony/property-access": "^3.4|^4.4|^5.2",
"symfony/security-bundle": "^3.4|^4.0|^5.2",
"symfony/security-core": "^3.4|^4.4|^5.2",
Expand Down

0 comments on commit 939b8f0

Please sign in to comment.