Hi! AFAIK, you cannot do it in Controller, because when DI container compiled, there is no more tag information in it. You can find tagged services while container is compiling (in custom compiler pass) and inject them all to some service like twig extensions injected:
https://github.com/symfony/TwigBundle/blob/master/TwigBundle.php#L30 https://github.com/symfony/TwigBundle/blob/master/DependencyInjection/Compiler/TwigEnvironmentPass.php On Tue, Aug 28, 2012 at 11:42 AM, liuggio <liug...@gmail.com> wrote: > mmmm > Are you sure you really need in the controller? > > > > > On Tue, Aug 28, 2012 at 9:55 AM, Ivan Lubomir <lubomir1...@gmail.com> wrote: >> >> Hello! >> >> I should get list of services by tag in Controller. How to do it? >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> You received this message because you are subscribed to the Google >> Groups "symfony developers" group. >> To post to this group, send email to symfony-devs@googlegroups.com >> To unsubscribe from this group, send email to >> symfony-devs+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/symfony-devs?hl=en > > > > > -- > __________________liuggio_________________________________ > > __/|_ We reject kings, presidents and voting. > /o ) \/ We believe in rough consensus > )__ v _/\ and running code (I.E.T.F. credo) > ______________________________________________________________ > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony developers" group. > To post to this group, send email to symfony-devs@googlegroups.com > To unsubscribe from this group, send email to > symfony-devs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en