compatibility to symfony 2.3