feat: Небольшой рефакторинг. Ограничение длинны значения в поле ввода
This commit is contained in:
parent
f599a68529
commit
e5e0b6735f
5 changed files with 56 additions and 40 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue