This should be part of the symfony Request object .... @fabpot