Dependency injection for PHP