Problem/Motivation
#1685492: Convert theme engines into services needs a quick fix because a service locator does not support $this->themeEngines->get($name, SymfonyContainerInterface::NULL_ON_INVALID_REFERENCE);
Steps to reproduce
See #3556101: [11.3.x] Semi-coupled engine not compatible with Drupal 11.x
Proposed resolution
Use has()
Remaining tasks
User interface changes
None
Introduced terminology
N/a
API changes
None
Data model changes
None
Release notes snippet
N/a
Issue fork drupal-3556130
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3556130-themeengine-bc-layer
changes, plain diff MR !13684
Comments
Comment #3
alexpottWill work out how to test...
Comment #4
alexpottThe test only job fails both the expected test cases - see https://git.drupalcode.org/issue/drupal-3556130/-/jobs/7158762
Comment #5
berdirChanges make sense, phpstan should have caught that but didn't with our configuration (\Psr\Container\ContainerInterface::get() does not have that argument either).
Failing tests are just the usual and frequent random fails, theme switch and media library.
Comment #6
longwaveCommitted and pushed a30c38e4213 to 11.x and c50910413f0 to 11.3.x. Thanks!