public function process(ContainerBuilder $container){
		if (!$container->hasDefinition(ParserChainInterface::SERVICE_ID)) {
			return;
		}
		
		$definition = $container->getDefinition(ParserChainInterface::SERVICE_ID);

		$taggedServices = $container->findTaggedServiceIds(MediaParserInterface::SERVICE_TAG);
		
		foreach ($taggedServices as $id => $tagAttributes) {
			foreach ($tagAttributes as $attributes) {
				$definition->addMethodCall(
						'addParser',
						array(new Reference($id))
				);
			}
		}
	}
public function process(ContainerBuilder $container){
		if (!$container->hasDefinition(ParserChainInterface::SERVICE_ID)) {
			return;
		}
		
		$definition = $container->getDefinition(ParserChainInterface::SERVICE_ID);

		$taggedServices = $container->findTaggedServiceIds(MediaParserInterface::SERVICE_TAG);
		
		foreach ($taggedServices as $id => $tagAttributes) {
			foreach ($tagAttributes as $attributes) {
				$definition->addMethodCall(
						'addParser',
						array(new Reference($id))
				);
			}
		}
	}
public function process ( ContainerBuilder $ container ) { if ( ! $ container -> hasDefinition ( ParserChainInterface :: SERVICE_ID ) ) { return ; } $ definition = $ container -> getDefinition ( ParserChainInterface :: SERVICE_ID ) ; $ taggedServices = $ container -> findTaggedServiceIds ( MediaParserInterface :: SERVICE_TAG ) ; foreach ( $ taggedServices as $ id => $ tagAttributes ) { foreach ( $ tagAttributes as $ attributes ) { $ definition -> addMethodCall ( 'addParser' , array ( new Reference ( $ id ) ) ) ; } } }
Searches for all Audio Parsers that are tagged as 'stinger_soft.audioparser' inside all services.yml files
@see Symfony\Component\DependencyInjection\Compiler.CompilerPassInterface::process()
Searches for all Audio Parsers that are tagged as stinger_soft . audioparser inside all services . yml files