Fixed the compatibility with Symfny 2.2

Closes #123