chore: Типы для параметров

This commit is contained in:
origami11@yandex.ru 2025-05-13 17:26:49 +03:00
parent 6ef65fc826
commit 36c81135f3
7 changed files with 55 additions and 95 deletions

View file

@ -119,7 +119,8 @@ class Action
if(file_exists($template)) { break; }
}
$tpl/*: Composite*/ = new $viewClass($template);
/** @var \ctiso\View\Composite */
$tpl = new $viewClass($template);
$tpl->config = $this->config;
$stylePath = Path::join($webPath, "assets", "css");
@ -140,8 +141,6 @@ class Action
'template' => $list
]);
$tpl->loadImports(Path::skipExtension($template) . ".import");
$this->addSuggest($tpl, $name);
return $tpl;
}