refactor: Замена строк на имена классов

This commit is contained in:
origami11@yandex.ru 2024-12-16 17:10:44 +03:00
parent 1d22953f68
commit 82f6dd1630
4 changed files with 30 additions and 18 deletions

View file

@ -99,7 +99,8 @@ class Component
return new FakeTemplate($name);
}
$config/*: Registry*/ = $this->config;
/* @var Registry $config */
$config = $this->config;
$default = $config->get('site', 'template');
$template = ($this->template) ? $this->template : $this->getTemplateName($config);