Fix Symfony 2.5 compatibility

                   
|Q            |A  |
|---          |---|
|Bug Fix?     |y  |
|New Feature? |n  |
|BC Breaks?   |n  |
|Deprecations?|n  |
|Tests Pass?  |y  |
|Fixed Tickets|   |
|License      |MIT|
|Doc PR       |   |
                   


 Sent using [Gush](https://github.com/gushphp/gush)