Fixed compatibility issue with symfony2 plugin