BWF\DocumentTemplates\Layouts\TwigLayout::createEnvironment

Creates the twig environment and sets the sets up the security policy.