-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bootstrap.php
executable file
·34 lines (32 loc) · 1.1 KB
/
Bootstrap.php
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
26
27
28
29
30
31
32
33
34
<?php
namespace app\modules\config;
use app\modules\config\application\DirectoryService;
use app\modules\config\application\DirectoryServiceInterface;
use app\modules\config\application\WorkflowServiceInterface;
use app\modules\config\application\WorkflowService;
use app\modules\config\application\WorkflowStatusServiceInterface;
use app\modules\config\application\WorkflowStatusService;
use app\modules\config\application\WorkflowTransitionServiceInterface;
use app\modules\config\application\WorkflowTransitionService;
use yii\base\BootstrapInterface;
/**
* Class Bootstrap
*
*
* @author Dzhamal Tayibov
*/
class Bootstrap implements BootstrapInterface
{
/**
* @inheritdoc
*/
public function bootstrap($app)
{
\Yii::$container->setSingletons([
DirectoryServiceInterface::class => DirectoryService::class,
WorkflowServiceInterface::class => WorkflowService::class,
WorkflowStatusServiceInterface::class => WorkflowStatusService::class,
WorkflowTransitionServiceInterface::class => WorkflowTransitionService::class,
]);
}
}