Fixed request compatibility with Symfony 2.5