Skip to content
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

Fix Symfony 6.2 deprecation for Security helper #129

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

RobertMe
Copy link
Contributor

@RobertMe RobertMe commented Mar 8, 2023

As the title states :) In Symfony 6.2 the Security helper of the Security component has been marked as deprecated, with a replacement helper being added in the Security bundle. This change fixes the deprecation by referencing the service by the name (security.helper) instead of the FQN, and for the "user" two implementations are added, one depending on the old class and one depending on the new class.

Tested on PHP 7.2 and 8.1 using both high and low dependencies.

@chalasr
Copy link
Member

chalasr commented Apr 23, 2023

Good catch, thanks @RobertMe.

@chalasr chalasr merged commit a83481e into thephpleague:master Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants