Description
Description
When building a new reusable bundle, it is useful to log what was automatically registered on the container based on the bundle semantic configuration. In compiler passes, it is possible with a simple $container->log()
. However, the signature of log()
prohibits passing anything which is not a CompilerPassInterface
:
symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php
Lines 1422 to 1424 in 94414b3
That change is very non-invasive, as it essentially boils down to adding |\Symfony\Component\DependencyInjection\Extension\ExtensionInterface
on both log()
methods. They're both marked as @final
and are using the class only for the informational purposes. Since 6.2 requires PHP 8.1 and |
is supported since 8.0 this shouldn't be a problem.
WDYT?