minor #12492 [HttpKernel] Add consistency with request type checking (blanchonvincent)

This PR was submitted for the master branch but it was merged into the 2.5 branch instead (closes #12492).

Discussion
----------

[HttpKernel] Add consistency with request type checking

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

1852f85 Add consistency with request type checking
This commit is contained in:
Fabien Potencier 2014-11-16 18:33:21 +01:00
commit af73a4716a

View File

@ -47,7 +47,7 @@ class SaveSessionListener implements EventSubscriberInterface
{
public function onKernelResponse(FilterResponseEvent $event)
{
if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
if (!$event->isMasterRequest()) {
return;
}