This course is still being released! Check back later for more chapters.

Get Notified About this Course!

We will send you messages regarding this course only
and nothing else, we promise.
You can unsubscribe anytime by emailing us at:
privacy@symfonycasts.com
> Symfony 7 >

Course Overview

Login to bookmark this course

Dependency Injection Attributes

In modern Symfony, services can be configured using native PHP attributes, integrating configuration directly within the code. Let’s explore this with a practical example.

  • intermediate
  • 0 students
  • EN/ES Captions
  • EN/ES Script
  • Certificate of Completion

About this course

This course is in the planning stages

Traditionally, Symfony services were configured in XML or YAML files. This creates a bit of a disconnect between your code and the configuration. In modern Symfony, we can use native PHP attributes to configure services. This allows us to keep our service configuration right in our code as native PHP metadata, which is pretty cool! Let's dive into these Dependency Injection attributes in the context of a fun example.

Next courses in the Symfony 7: Learn More Tricks section of the Symfony 7 Track!

1 Comment

Sort By
Login or Register to join the conversation
Jared avatar Jared 24 days ago

Looking forward to this course! Thank you!

3 | Reply |

Delete comment?

Share this comment

astronaut with balloons in space

"Houston: no signs of life"
Start the conversation!