Symfony2 create a service [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . There used to be a how-to in the symfony2 doc on how to create a service (my_mailer) but I can't seem to find it anywhere. Can anyone tell me where to find it, or some other tutorial on how to create a service in symfony2 ? 回答1: Service Container - http://symfony.com/doc/current/book/service_container.html