Update for new API of Symfony 2.3