Playing with dependency injection using PHP