add compatibility to symfony 2.2