feat: Небольшой рефакторинг. Ограничение длинны значения в поле ввода

This commit is contained in:
origami11@yandex.ru 2024-12-05 12:48:08 +03:00
parent f599a68529
commit e5e0b6735f
5 changed files with 56 additions and 40 deletions

View file

@ -231,6 +231,9 @@ class Component
$view->component_title = $settings['title'];
}
/**
* Обьеденить с ComponentFactory
*/
static function loadComponent($expression, $site/*: SiteInterface*/)
{
@ -289,6 +292,7 @@ class Component
}
}
// Вынести в отдельную функцию
$db = $site->getDatabase();
$component->db = $db;