adjust to newest symfony 2.2 after https://github.com/symfony/symfony/pull/6825