Dependency injection and automatic loading of PHP files