Symfony 2.3.1 support

These changes make the bundle compatible with Symfony 2.3.1.