Symfony2 compatibility changes