Adapted to Symfony change