Removed deprecated call

Closes #125
Fixed the compatibility with Symfny 2.2

Closes #123