Support for Symfony 2.4.x

@mks3w Forked this a while back but forgot to PR. This fork currently works in Symfony 2.4.