Skip to content

Conversation

swiffer
Copy link
Contributor

@swiffer swiffer commented Dec 28, 2022

No description provided.

@swiffer swiffer changed the base branch from 2.x to 2.next December 28, 2022 20:17
@markstory markstory added this to the 2.next milestone Dec 29, 2022
"firebase/php-jwt": "^6.2",
"phpunit/phpunit": "^8.5 || ^9.3"
"phpunit/phpunit": "^8.5 || ^9.3",
"symfony/cache": "^5.4 || ^6.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this dependency?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the discussion here:

#535 (comment)

this was rebased / reopened as github closed it beeing stale for a while.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, so its the PSR6 vs PSR16 compatibility shims that we actually need. While I don't love the additional dependency I also don't relish maintaining adapter code for a low-frequency use feature. We'll should include the additional dependencies required in the documentation and raise an error with instructions to install the required dependencies if they don't exist.

$jsonWebKeySet,
new Client(),
new RequestFactory(),
new Psr16Adapter(Cache::pool($jsonWebKeySetCache)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that symfony/cache is an optional dependency the existence of the Psr16Adapter class should be checked first and in case of failure show a message stating which package the dev should include in their app.

@github-actions
Copy link

github-actions bot commented May 6, 2023

This pull request is stale because it has been open 30 days with no activity. Remove the stale label or comment on this issue, or it will be closed in 15 days

@github-actions github-actions bot added the stale label May 6, 2023
@github-actions github-actions bot closed this May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants