dependency injection sample by php