Symfony 2.5 compatibility

Hi,

First of all, thanks for this great job.

I just needed to use your bundle with symfony 2.5 and changed some code to make it compatible with.

For now i'm using my fork but if you can merge this PR, i can change it to use yours and keep up to date with your updates.

Thanks.