A dependency injection class based on Pimple