Fix compatibility with Symfony 2.3

Note that due to an interface break in symfony, you will either need to:
a) support symfony >=2.3
b) reject this PR (or changes) and support symfony < 2.3