Symfony 2.4 compatibility added

I've added compatibility with Symfony 2.4 as well.