update compatible for symfony 2.2