bug #41486 [HttpKernel] Fix sessionListener when factory is injected without session (jderusse)
bug #41486 [HttpKernel] Fix sessionListener when factory is injected without session (jderusse)

This PR was merged into the 5.4 branch.

Discussion
----------

[HttpKernel] Fix sessionListener when factory is injected without session

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

b7e91943b6 Fix sessionListener when factory is injected without session

symfony/http-kernel,symfony/HttpKernel