diff --git a/.gitignore b/.gitignore index fab34be3..550031fe 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,6 @@ composer.lock ## Infection infection.log infection.html + +## Box +bin/twig-cs-fixer.phar diff --git a/scoper.inc.php b/scoper.inc.php index 63882d72..2becec7f 100644 --- a/scoper.inc.php +++ b/scoper.inc.php @@ -2,10 +2,25 @@ declare(strict_types=1); +use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\Finder\Finder; +use Twig\Environment; +use Twig\Extension\ExtensionInterface; +use Twig\NodeVisitor\NodeVisitorInterface; +use Twig\TokenParser\TokenParserInterface; + return [ - 'exclude-namespaces' => ['^TwigCsFixer\\'], + 'exclude-namespaces' => ['TwigCsFixer'], 'expose-global-constants' => false, 'expose-global-classes' => false, 'expose-global-functions' => false, - 'expose-namespaces' => ['^Symfony\\', '^Twig\\'], + 'expose-namespaces' => ['Twig\Node'], + 'expose-classes' => [ + OutputInterface::class, + Finder::class, + Environment::class, + ExtensionInterface::class, + NodeVisitorInterface::class, + TokenParserInterface::class, + ], ];