PubSub pattern / Events in PHP