Support Symfony 2.5

fix issue #30, tested on Symfony 2.5, work fine