https://github.com/symfony/symfony/pull/26768 You can now call PHP methods when using `registerForAutoconfiguration()`: ```php $container->registerForAutoconfiguration(LoggerAwareInterface::class) ->addMethodCall('setLogger', array(new Reference(LoggerInterface::class))); ```