Skip to content

CallableResolver and ClassResolver no longer support ContainerAwareInterface - D11 Compatibility #250

@joshua-salsadigital

Description

@joshua-salsadigital

Drupal's \Drupal\Core\Utility\CallableResolver and \Drupal\Core\DependencyInjection\ClassResolver services previously supported ContainerAwareInterface to allow classes to access the whole dependency injection container. This is now deprecated in Drupal 10.3.0 and will not be supported in Drupal 11.

Reference: https://www.drupal.org/node/3428661

Referenced Code
https://github.com/quantcdn/drupal/blob/8.x-1.x/modules/quant_purger/src/Plugin/Purge/Queuer/QuantPurger.php#L7

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions