Implementation PubSub using YAML and a Dependency Injection Container