src/Viserio/Provider/Twig/Provider/TwigServiceProvider.php
public function getFactories(): array
    {
        return [
            LoaderInterface::class => [self::class, 'createTwigLoader'],
            TwigLoader::class      => static function (ContainerInterface $container) {
                return $container->get(LoaderInterface::class);
            },
            TwigEnvironment::class => [self::class, 'createTwigEnvironment'],
            TwigEngine::class      => [self::class, 'createTwigEngine'],
        ];
    }
public function getFactories(): array
    {
        return [
            LoaderInterface::class => [self::class, 'createTwigLoader'],
            TwigLoader::class      => static function (ContainerInterface $container) {
                return $container->get(LoaderInterface::class);
            },
            TwigEnvironment::class => [self::class, 'createTwigEnvironment'],
            TwigEngine::class      => [self::class, 'createTwigEngine'],
        ];
    }
{@inheritdoc}