Answer by user895378 for what's the proper way to use Symfony's...
Disclaimer: this answer has nothing to do with the Symfony EventDispatcher but everything to do with your question. If you just want an answer you can skip the (somewhat) academic discussion and jump...
View ArticleAnswer by liquorvicar for what's the proper way to use Symfony's...
I would avoid (2). Inheritance is possibly the most over-used pattern and probably isn't relevant here. The choice between options (1) and (3) probably depends on your context. Whilst avoiding tight...
View Articlewhat's the proper way to use Symfony's EventDispatcher component?
I'd like to promote loose coupling in my PHP code, by making certain classes observable. Symfony's EventDispatcher component looks promising, as does the SPL SplObserver/SplSubject pair of...
View Article
More Pages to Explore .....