Skip to content

Commit

Permalink
feature #143 Make OAuth2Token non-final (Amunak)
Browse files Browse the repository at this point in the history
This PR was merged into the 0.4-dev branch.

Discussion
----------

Make OAuth2Token non-final

This - seemingly for no reason - prevents advanced use cases like extending the OAuth2Token with additional custom data.

There's a precedent in that Symfony themselves do not mark any Token classes as final and even extend them themselves.

Commits
-------

d896a16 Make OAuth2Token non-final
  • Loading branch information
chalasr committed Mar 10, 2024
2 parents a094e60 + d896a16 commit 4e59b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Security/Authentication/Token/OAuth2Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* @author Mathias Arlaud <[email protected]>
*/
final class OAuth2Token extends AbstractToken
class OAuth2Token extends AbstractToken
{
/**
* @param list<string> $scopes
Expand Down

0 comments on commit 4e59b1d

Please sign in to comment.