Problem/Motivation
In #3029197: [symfony 5] Class implements "Symfony\Component\DependencyInjection\ResettableContainerInterface" that is deprecated since Symfony 4.2, use "Symfony\Contracts\Service\ResetInterface" instead we made Drupal\Component\DependencyInjection\Container not implement Symfony\Component\DependencyInjection\ResettableContainerInterface anymore as that was deprecated in Symfony 4.2. However the replacement Symfony\Contracts\Service\ResetInterface was not yet added in Symfony 3. Using the independent Symfony contracts package was not possible due to PHP version requirements.
Proposed resolution
Make Drupal\Component\DependencyInjection\Container implement Symfony\Contracts\Service\ResetInterface once Drupal depends on at least Symfony 4.
Remaining tasks
Postponed until at least the Symfony 4 updates happens.
User interface changes
None.
API changes
Drupal\Component\DependencyInjection\Container will implement Symfony\Contracts\Service\ResetInterface.
Data model changes
None.
Release notes snippet
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | interdiff.3032605.6-9.txt | 669 bytes | mikelutz |
| #9 | 3032605-9.drupal.patch | 1.71 KB | mikelutz |
Comments
Comment #3
mikelutzreactivating
Comment #4
mikelutzHere we go. Added symfony/service-contracts as an explicit dependency, but we already have it as it is a dependency of symfony dependency injection anyway, so no need to update the lock file or scaffolds as nothing changes.
Comment #6
mikelutzLets try this again...
Comment #7
longwaveSeems simple enough.
Comment #8
longwaveActually this @todo needs removing
Comment #9
mikelutzWhoops, good catch, thanks!
Comment #10
mikelutzComment #11
martin107 commenteda) All the reasoning behind this issue, seems sound.
b) All the work issues have been resolved.
c) There are no additional coding standard errors in the test artefacts.
LGTM
Comment #14
catchCommitted d105f45 and pushed to 9.1.x, cherry-picked to 9.0.x. Thanks!