src/Viserio/Provider/Twig/Engine/TwigEngine.php
public function get(array $fileInfo, array $data = []): string
    {
        $twig = $this->addExtensions($this->twig, $this->resolvedOptions['engines']['twig']);

        return $twig->render($fileInfo['name'] ?? '', $data);
    }
public function get(array $fileInfo, array $data = []): string
    {
        $twig = $this->addExtensions($this->twig, $this->resolvedOptions['engines']['twig']);

        return $twig->render($fileInfo['name'] ?? '', $data);
    }
{@inheritdoc}

@throws \Twig_Error_Loader
@throws \Twig_Error_Runtime
@throws \Twig_Error_Syntax
@throws \Viserio\Component\Contract\View\Exception\RuntimeException