Update for symfony 2

Symfony 2.2 support