-
-
Notifications
You must be signed in to change notification settings - Fork 611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 3.x migrate to "lcobucci/jwt" v5 #1157
base: 3.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ | |
"require": { | ||
"php": ">=8.1", | ||
"ext-openssl": "*", | ||
"lcobucci/jwt": "^3.4|^4.0", | ||
"lcobucci/jwt": "^5.0", | ||
"symfony/config": "^5.4|^6.0", | ||
"symfony/dependency-injection": "^5.4|^6.0", | ||
"symfony/deprecation-contracts": "^2.4|^3.0", | ||
|
@@ -53,6 +53,7 @@ | |
"require-dev": { | ||
"phpunit/phpunit": "^9.5", | ||
"symfony/browser-kit": "^5.4|^6.0", | ||
"symfony/clock": "^6.3", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as you instantiate a Symfony Clock when no clock is provided, this is not really an optional dependency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the feedback. I am not sure if this should be tied to "symfony/clock" or if it is possible to just add the requirement that it needs a repo that implements "psr/clock" and let the user decide, which one to chose. require psr/clock-implementation? The linked PR from @Dean151 makes the dependency optional. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, your implementation is the one making it non-optional. However, as this package is a Symfony bundle, I would not be too concerned about being bring a dependency on the Symfony component. |
||
"symfony/console": "^5.4|^6.0", | ||
"symfony/dom-crawler": "^5.4|^6.0", | ||
"symfony/filesystem": "^5.4|^6.0", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should also update the service definition to inject the
clock
service defined by FrameworkBundle when it is available (usingon-invalid="null"
to handle cases where the service is disabled) to use the clock configured in the container.