avoid triggering deprecation errors when used with Symfony 2.1.x