[bugfix] Symfony 2.6 support

Fixed incompatibilities with the newest version of the Symfony.

Please let me know if you need PR to different branch or something else is missing. It would be nice to have this change released as soon as possible.