Compatibility with Symfony 2.2 added