Add symfony 2.2 compatibility

Fix travisci