-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbootstrap.php
More file actions
25 lines (21 loc) · 769 Bytes
/
bootstrap.php
File metadata and controls
25 lines (21 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
declare(strict_types=1);
use Psr\Container\ContainerInterface;
use Yiisoft\Widget\WidgetFactory;
use Yiisoft\Config\Config;
/**
* @var Config $config
* @var array $params
*/
return [
static function (ContainerInterface $container) use ($config, $params) {
WidgetFactory::initialize(
container: $container,
definitions: $config->get($params['yiisoft/widget']['config']['definitionsGroup']),
validate: $params['yiisoft/widget']['config']['validate'],
themes: $config->get($params['yiisoft/widget']['config']['themesGroup']),
defaultTheme: $params['yiisoft/widget']['defaultTheme'],
widgetDefaultThemes: $params['yiisoft/widget']['widgetDefaultThemes'],
);
},
];