Issue #3215830 by longwave: Symfony 6 KernelEvent bridge is incompatible with Symfony 5 EventDispatcher (cherry picked from commit 89fcf77b)