A decorator to add observer behavior to Pimple