Hotfix - #1200 - Symfony 2.7.x deprecation fixes

See #1200