Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In #3209618: [Symfony 6] Symfony\Component\HttpKernel\Event\KernelEvent::isMasterRequest() is deprecated, use isMainRequest() instead we added a class alias for Symfony\Component\HttpKernel\Event\KernelEvent in DrupalKernel. This works but it is not ideal because if you don't load the DrupalKernel class then the class alias is not in place. This isn't much of an issue normally but in unit tests it might mean the alias is not in place.
Proposed resolution
Add core/class_aliases.php as an autoload file in core/composer.json to ensure the class alias is always in place.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3214234-2.patch | 3.38 KB | alexpott |
Comments
Comment #2
alexpottComment #3
Neslee Canil PintoThis seems to be pretty right, moving to RTBC.
The patch creates a class that will be added by the autoloader
Comment #4
larowlanCommitted a9fbf27 and pushed to 9.3.x. Thanks!
Cherry-picked to 9.2.x
Comment #6
larowlan