Symfony\Component\DependencyInjection\ContainerBuilder::findTaggedServiceIds
Returns service ids for a given tag.
Example: $container->register('foo')->addTag('my.tag', array('hello' => 'world')); $serviceIds = $container->findTaggedServiceIds('my.tag'); foreach ($serviceIds as $serviceId => $tags) { foreach ($tags as $tag) { echo $tag['hello']; } }
Signature
public function findTaggedServiceIds(string
$name )
Parameters
$name
— string- The tag name
Returns
- array
- An array of tags with the tagged service as key, holding a list of attribute arrays.