3 namespace Drupal\webprofiler\Compiler;
5 use Symfony\Component\DependencyInjection\Reference;
6 use Symfony\Component\DependencyInjection\ContainerBuilder;
7 use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
12 class StoragePass implements CompilerPassInterface {
17 public function process(ContainerBuilder $container) {
18 if (FALSE === $container->hasDefinition('profiler.storage_manager')) {
22 $definition = $container->getDefinition('profiler.storage_manager');
24 foreach ($container->findTaggedServiceIds('webprofiler_storage') as $id => $attributes) {
25 $definition->addMethodCall('addStorage', [
27 $attributes[0]['title'],