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
