Pretty sure this won't work with Symfony 2.2 any more.