-
Our app is coming to life! Thanks to the Doctrine Course we have a rich data model. And after the course on Configuration, well, using and configuring services is simple.Now it's time to level-up with those services. These puppies are the backbone of what makes Symfony special & fast. It's also the reason that organizing your code into reusable chunks is so easy. But beyond that, once you understand how services and the service container work, you'll be absolutely unstoppable inside of Symfony. Yep, let's do that:Understanding what a service isListing, fetching and using existing servicesCreating your own custom servicesRegistering your serviceChecking out the (mystical) dumped containerConfiguration ParametersDependency Injection TagsThis is the episode where it all starts coming together. Let's go!
Overview
Syllabus
-
- 01. Create Service
- 02. Creating a Service Class
- 03. The Dreaded Dependency Injection
- 04. Being Awesome with Type-Hints
- 05. Register your Service in the Container
- 06. Injecting the Cache Service
- 07. Adding a Twig Extension + DI Tags
- 08. Tagging Services (and having Fun!)
- 09. Autowiring Madness