Integrate HttpFoundation into your oauth2-server library