PHPnews.io

Overview for 'matthiasnoback'

Decoupling your (event) system

Written by Matthias Noback / Original link on Oct. 12, 2014

About interface segregation, dependency inversion and package stability You are creating a nice reusable package. Inside the package you want to use events to allow others to hook into your own code. You look at several event managers that are available. Since you are somewhat familiar with the Sym…


Symfony2: Event subsystems

Written by Matthias Noback / Original link on Oct. 12, 2014

Recently I realized that some of the problems I encountered in the past could have been easily solved by what I'm about to explain in this post. The problem: an event listener introduces a circular reference The problem is: having a complicated graph of service definitions and their dependencies,…