Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpKernel] Move@internal fromAbstractSessionListener class to its methods and properties#53057
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
[HttpKernel] Move@internal fromAbstractSessionListener class to its methods and properties#53057
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedDec 13, 2023
Hey! I see that this is your first PR. That is great! Welcome! Symfony has acontribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
chalasr commentedDec 13, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I suggest to |
stof commentedDec 13, 2023
an abstract class being defined as |
chalasr commentedDec 13, 2023
Right, stoffed again 😅 |
733f4c4 todcf62d8Compare| * Deprecate the`fileLinkFormat` parameter of`DebugHandlersListener` | ||
| * Add support for configuring log level, and status code by exception class | ||
| * Allow ignoring "kernel.reset" methods that don't exist with "on_invalid" attribute | ||
| * Un-mark`AbstractSessionListener` as internal and mark all of its public/protected method/properties as internal |
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.
Should be reverted as changelogs are auto-generated for bugfix releases
chalasr left a comment
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 minor comment
@internal fromAbstractSessionListener class to its methods and properties… methods and properties
dcf62d8 todefe229Comparefabpot commentedDec 17, 2023
Thank you@Florian-Merle. |
Uh oh!
There was an error while loading.Please reload this page.
The
AbstractSessionListenerbeing marked as internal, its public constantNO_AUTO_CACHE_CONTROL_HEADERshould not be used while the documentationstates it can.In fact, static analysis tools like psalm says there is an error with code using this constant.
Another solution is to make every method of theAbstractSessionListenerinternal but this means the class could be extended.Also, maybe the classAbstractSessionListenershould not be internal, but I don't think so.This is why I introduced a new interface that is not internal and allows to not introduce BC.The documentation will need to be updated if this pull request is merged, I'd be happy to do it later.As discussed, I made public/protected properties and methods internal and removed the original internal mark on the class.
This solves the issue and allows us to use the
AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADERconst just like the documentation says we can.