Chain of responsibility design pattern with Symfony example

preview_player
Показать описание
In this tutorial I explain a behavioural design pattern "chain of responsibility". I demonstrate the process of this pattern with simple example which is implemented on Symfony 5.

Below you will find a link to the repository with final code. The project is dockerized and has Xdebug. So you can easily run it locally and check execution.

#DesignPattern #ChainOfResponsibility

In this video I use Symfony 5 with PHP 8 but this tutorial is still relevant for older versions of Symfony framework or PHP.

⭐️ Final result you can find here ⭐️

⭐️ Support channel on Patreon ⭐️

⭐️ Resources ⭐️
🔗 Book O'Reilly "Head first design patterns"

Get € 20 on Hetzner Cloud hosting:

Register domain without hassle on GoDaddy

⭐️ TABLE OF CONTENT ⭐️

00:00:00 Introduction
00:00:52 Theory
00:02:00 Example
00:04:46 Symfony implementation
Рекомендации по теме
Комментарии
Автор

Hi! Excelent video! why do you add isResolved into the entity?? don't you think this property does not belong to the domain? any other way to check the proccess as resolved without adding this property in the domain? Thanks in advace

nicorizo
Автор

Это золото! Посмотрел первый раз – не понял как, хорошо что понял зачем)
Спасибо за работу!

antontraceur
Автор

Спасибо за видео! Можешь посоветовать что-то толковое по симфони? В этих 9 минутах смысла больше, чем в двухчасовых "обзорах", где показывают наличие фич, но не практическое применение)

andriigolovenko
Автор

Nice tutorial but my eyes hurt to see PHP hahah.

marcopierrefernandezburgos
Автор

Mec, pourquoi tu parles en anglais alors tes tutos sont en français !

horahola