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'];
}
}
public findTaggedServiceIds ( string $name ) : array | ||
$name | string | The tag name |
return | array | An array of tags with the tagged service as key, holding a list of attribute arrays |