fixed 2.2 compatibility

Related to https://github.com/jmikola/JmikolaAutoLoginBundle/issues/5