How do I add twig bridge as extension to twig when using symfony forms?

I wanna use Symfony Forms to create forms for my app. Now the thing is that apparently I need to add a package called Twig Bridge to join Symfony Form with Twig and I don’t know how to add it because the instructions I see are too convoluted.

This is my container (the relevant part):

'view' => function (ContainerInterface $container) {

            $settings = $container->get('settings');

            return Twig::create($settings['view']['template_path'], $settings['view']['twig']);


I tried to integrate them but I got all messed up. I’m using Slim 4 and the Twig view package.