BaseController change for compatibility with Symfony 2.5