-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] PostResponseEvent should extend the KernelEvent #16430
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
Why is it a KernelEvent? It's not triggered from the Kernel. |
Well, it is dispatched from the |
True. But as discussed in #16342, the terminate event is always for master requests only. So exposing a |
What do you think about overriding |
@xabbuh the request type is set in the constructor. I don't think there's need to override I don't see how this could be confusing really. |
Î suggest to add a phpdoc at the class level explaining that it always returns MASTER_REQUEST |
fffc3ff
to
b9863d5
Compare
@Tobion done |
👍 Status: reviewed |
👍 (the comment in the class docblock really is enough) |
Thank you @jakzal. |
…lEvent (jakzal) This PR was merged into the 2.8 branch. Discussion ---------- [HttpKernel] PostResponseEvent should extend the KernelEvent | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16342 | License | MIT | Doc PR | - Technically the `PostResponseEvent` is a `KernelEvent`. Commits ------- b9863d5 [HttpKernel] PostResponseEvent should extend the KernelEvent
Technically the
PostResponseEvent
is aKernelEvent
.