-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Move @internal
from AbstractSessionListener
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HttpKernel] Move @internal
from AbstractSessionListener
class to its methods and properties
#53057
Conversation
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution 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 |
I suggest to |
an abstract class being defined as |
Right, stoffed again 😅 |
733f4c4
to
dcf62d8
Compare
@@ -9,6 +9,7 @@ CHANGELOG | |||
* 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
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
from AbstractSessionListener
class to its methods and properties
… methods and properties
dcf62d8
to
defe229
Compare
Thank you @Florian-Merle. |
The
AbstractSessionListener
being marked as internal, its public constantNO_AUTO_CACHE_CONTROL_HEADER
should not be used while the documentation states 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 theAbstractSessionListener
internal but this means the class could be extended.Also, maybe the classAbstractSessionListener
should 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_HEADER
const just like the documentation says we can.