Two Design Patterns Combined | Strategy and Chain of Responsibility in Symfony

Опубликовано: 27 Март 2026
на канале: AI Not Good Enough
400
15

In this video, we dive deep into two powerful design patterns —Strategy and Chain of Responsibility—and explore how they are used together in the Symfony ecosystem.

We’ll cover:
The basics of the Strategy pattern and how to implement it in PHP.
A practical example with adding and subtracting numbers using different strategies.
Enhancing the Strategy pattern with the Chain of Responsibility pattern for more flexible and maintainable code.
Real-world Symfony components that use these design patterns, such as Mailer, Messenger, Notifier, EventDispatcher, Security, and Serializer.

Join me as we break down these patterns and see how they make Symfony components easier to read and maintain. By the end of the video, you'll have a solid understanding of how these patterns work in harmony and how you can apply them in your own projects.

🔔 Don't forget to like, subscribe, and hit the notification bell for more content on design patterns and Symfony best practices!

00:00 Intro Two Design Patterns
00:47 Practical example
03:25 Symfony existing examples