getDefinition('doctrine.fixtures_load_command'); $taggedServices = $container->findTaggedServiceIds(self::PURGER_FACTORY_TAG); $purgerFactories = []; foreach ($taggedServices as $serviceId => $tags) { foreach ($tags as $tagData) { if (! isset($tagData['alias'])) { throw new LogicException(sprintf('Proxy factory "%s" must define an alias', $serviceId)); } $purgerFactories[$tagData['alias']] = new Reference($serviceId); } } $definition->setArgument(2, $purgerFactories); } }