Hotfix - #1200 symfony 2.7 deprecation fixes

See #1200