我想知道是否有办法在Command中找到标记服务.
我有一个扩展的Command ContainerAwareCommand,我能够访问容器,但我希望得到所有由特定标签标记的服务.例如,我想有类似的东西:
ContainerAwareCommand
$this->getContainer()->findTaggedServiceIds('smtp.transport')
command dependency-injection symfony symfony-2.1
command ×1
dependency-injection ×1
symfony ×1
symfony-2.1 ×1