Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[SecurityBundle] Add service alias for legacy Security helper#46602

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
chalasr merged 1 commit intosymfony:6.2fromHypeMC:add-legacy-security-alias
Jun 6, 2022

Conversation

HypeMC
Copy link
Member

QA
Branch?6.2
Bug fix?yes
New feature?no
Deprecations?yes
Tickets-
LicenseMIT
Doc PR-

The service alias forSymfony\Component\Security\Core\Security was removed in#46094 which causes existing code to break when upgrading to 6.2, eg:

useSymfony\Component\Security\Core\Security;class HomeControllerextends AbstractController{publicfunction__construct(privateSecurity$security)    {    }}

results in:
image

@chalasr
Copy link
Member

chalasr commentedJun 6, 2022
edited
Loading

You still get aTypeError with the patch, isn't it?
Answer: no, I made the new class extends the deprecated one.

@chalasr
Copy link
Member

Good catch, thanks@HypeMC.

HypeMC reacted with thumbs up emoji

@chalasrchalasr merged commita1d6134 intosymfony:6.2Jun 6, 2022
@HypeMCHypeMC deleted the add-legacy-security-alias branchJune 6, 2022 17:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@chalasrchalasrchalasr approved these changes

@wouterjwouterjAwaiting requested review from wouterjwouterj is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
6.2
Development

Successfully merging this pull request may close these issues.

3 participants
@HypeMC@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp