code: 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);
      }
docs: @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