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

CommentFileSizeAuthor
#2 3209482.patch2.14 KBlongwave
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave created an issue. See original summary.

longwave’s picture

Status: Active » Needs review
FileSize
2.14 KB
andypost’s picture

Status: Needs review » Reviewed & tested by the community

I bet it will be green

  • catch committed a83a87c on 9.2.x
    Issue #3209482 by longwave: [Symfony 6] Update EventDispatcherInterface...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed a83a87c and pushed to 9.2.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.