src/PeekAndPoke/AviatorAllRounder/AviatorAllRounderDefaults.php
public function createViewEngine(Environment $environment, Translator $translator, array $modules) : ViewEngine
    {
        $moduleDirs = [];

        foreach ($modules as $module) {
            $moduleDirs[$module->getName()] = $module->getViewDirectory();
        }

        return new ClearView($environment->isDevMode(), $translator, $moduleDirs);
    }
public function createViewEngine(Environment $environment, Translator $translator, array $modules) : ViewEngine
    {
        $moduleDirs = [];

        foreach ($modules as $module) {
            $moduleDirs[$module->getName()] = $module->getViewDirectory();
        }

        return new ClearView($environment->isDevMode(), $translator, $moduleDirs);
    }
@Di\Service("mvc.view-engine", singleton=false)

@param Environment $environment
@param Translator  $translator
@param MvcModule[] $modules

@Di\Inject\ByType("modules", type=MvcModule::class)

@return ViewEngine