Same PR as accepted PR #137 for develop branch

Hi @avalanche,

Actually this is same PR as accepted PR https://github.com/avalanche123/AvalancheImagineBundle/pull/137 for develop branch.
On this way I would like to speed up process of transferring of change with master branch.

Regards!