Homemade DI service container for php >= 5.4