Updates for Symfony 2.3

Some changes for deprecated functions no longer working in Symfony 2.3