Updated for the upcoming 2.4 release

Hi there!

I had never seen this before, but looks neat. I haven't tried it yet, but since Symfony 2.4 will be coming out in the next few days, it will need this change.

Cheers!