updated render usage

see symfony/symfony#6925