Problem/Motivation
In #3209618: [Symfony 6] Symfony\Component\HttpKernel\Event\KernelEvent::isMasterRequest() is deprecated, use isMainRequest() instead we copied Symfony's KernelEvent to provide a compatibility bridge between Symfony 4 and 6. However, the bridge does not actually work in Symfony 5 and higher.
This is because of #3055198: [Symfony 5] Symfony/Component/EventDispatcher/Event is deprecated in Symfony 4.3 use Symfony/Contracts/EventDispatcher/Event instead where we replaced Symfony\Component\EventDispatcher\Event with another bridge class, but did not make the same change when we later copied the KernelEvent class.
Steps to reproduce
See https://www.drupal.org/pift-ci-job/2073268 from #3161889: [META] Symfony 6 compatibility
Proposed resolution
Replace Symfony\Component\EventDispatcher\Event with Drupal\Component\EventDispatcher\Event in Drupal\Core\Http\KernelEvent.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3215830.patch | 475 bytes | longwave |
Comments
Comment #2
longwaveComment #3
longwaveComment #4
longwaveComment #5
catchLooks great.
Comment #6
alexpottCommitted and pushed 89fcf77b69 to 9.3.x and dde7102a5d to 9.2.x. Thanks!