-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Marked the class DebugHandlersListener as internal #39016
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
Conversation
f2a6294
to
db06c07
Compare
src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php
Outdated
Show resolved
Hide resolved
b05be50
to
95aa265
Compare
95aa265
to
bc35a40
Compare
src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php
Outdated
Show resolved
Hide resolved
bc35a40
to
05d0686
Compare
src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php
Outdated
Show resolved
Hide resolved
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.
With this change alone, you create a constructor parameter that has to be always null and you still won't be able to remove it in Symfony 6.
What you need to do is remove the $fileLinkFormat
parameter from the signature. This way, all following parameters are shifted left. If something that looks like a file link format is passed to $scope
(which is now at the position where $fileLinkFormat
previously was), you trigger the deprecation.
@derrabus What about the solution of @nicolas-grekas? It sounds simpler to me :) |
I'm for this alternative 👍, this class looks really |
I agree. In that case, we wouldn't need a deprecation layer at all, I guess. |
@lyrixx caution, it seems that you pushed a commit under my name :) |
05d0686
to
f796fb3
Compare
f796fb3
to
dfdedbd
Compare
I updated the PR to mark the class Should I put something in |
src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php
Outdated
Show resolved
Hide resolved
dfdedbd
to
86ed073
Compare
86ed073
to
69c9891
Compare
Hello, What is missing for this PR? Note: I keep rebasing this PR because of a conflit on |
69c9891
to
e531d67
Compare
Maybe add a changelog entry in the component? |
e531d67
to
fca04c2
Compare
I added a note in the CHANGELOG of HttpKernel Component |
…ener\DebugHandlersListener` as internal
fca04c2
to
1ee7e4c
Compare
Thank you @lyrixx. |
Uh oh!
There was an error while loading. Please reload this page.