Fixed bug with symfony 2.3

Ticket https://github.com/avalanche123/AvalancheImagineBundle/issues/144