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 #3161983: [Symfony 6] Update EventDispatcherInterface type hints in constructors we updated EventDispatcherInterface typehints to use the Symfony Contracts namespace over the Component namespace for forward compatibility with Symfony 5.
In #3032390: Add an event to sanitize filenames during upload we added EventDispatcherInterface to FileUploadResource but this uses the old Component namespace.
Steps to reproduce
See #3161889: [META] Symfony 6 compatibility
Proposed resolution
Update the typehint to use the Contracts namespace.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3209482.patch | 2.14 KB | longwave |
Comments
Comment #2
longwaveComment #3
andypostI bet it will be green
Comment #5
catchCommitted a83a87c and pushed to 9.2.x. Thanks!