Remove deprecated methods in Symfony 2.6
Add 2.1 version