update deprecated calls since Symfony 2.1