Alternate fix for #96

tested with symfony-standard v2.2.3 (and v2.3.1 with JMSDiExtraBundle and JMSSecurityExtraBundle dependencies restored)