Set HTTP content type in Symfony action.