src/Viserio/Provider/Twig/Provider/TwigServiceProvider.php
public static function createTwigEngine(ContainerInterface $container): TwigEngine
    {
        $engine = new TwigEngine($container->get(TwigEnvironment::class), $container->get('config'));
        $engine->setContainer($container);

        return $engine;
    }
public static function createTwigEngine(ContainerInterface $container): TwigEngine
    {
        $engine = new TwigEngine($container->get(TwigEnvironment::class), $container->get('config'));
        $engine->setContainer($container);

        return $engine;
    }
Create a new twig engine instance.

@param \Psr\Container\ContainerInterface $container

@return \Viserio\Provider\Twig\Engine\TwigEngine