Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

SymfonyCasts

Symfony 3: Level up with Services and the Container

via SymfonyCasts

Overview

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 is
  • Listing, fetching and using existing services
  • Creating your own custom services
  • Registering your service
  • Checking out the (mystical) dumped container
  • Configuration Parameters
  • Dependency Injection Tags

This is the episode where it all starts coming together. Let's go!

Syllabus

  • Create Service
  • Creating a Service Class
  • The Dreaded Dependency Injection
  • Being Awesome with Type-Hints
  • Register your Service in the Container
  • Injecting the Cache Service
  • Adding a Twig Extension + DI Tags
  • Tagging Services (and having Fun!)
  • Autowiring Madness

Taught by

Ryan Weaver and Leanna Pelham

Reviews

Start your review of Symfony 3: Level up with Services and the Container

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.