Services with Symfony is a Symfony tutorial.

This video goes through and example on using services along with explaining what is a service in symfony 3, how to access a service directly from the container and also by type-hinting the arguments.

One thing i forgot to talk about in the video is “Why use a service?”, two reasons for that the first one is reusability as you can see on the video, and another important thing is Unit Test, you can actually test your service and you can’t do that in the controller.

#symfony #services

Services with Symfony is a Symfony tutorial.