- Notifications
You must be signed in to change notification settings - Fork 227
Expand file tree
/
Copy pathcontainer.php
More file actions
20 lines (17 loc) · 566 Bytes
/
container.php
File metadata and controls
20 lines (17 loc) · 566 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
* Initialize a dependency injection container that implemented PSR-11 and return the container.
*/
declare(strict_types=1);
/**
* This file is part of MineAdmin.
*
* @link https://www.mineadmin.com
* @document https://doc.mineadmin.com
* @contact root@imoi.cn
* @license https://github.com/mineadmin/MineAdmin/blob/master/LICENSE
*/
use Hyperf\Context\ApplicationContext;
use Hyperf\Di\Container;
use Hyperf\Di\Definition\DefinitionSourceFactory;
return ApplicationContext::setContainer(new Container((new DefinitionSourceFactory())()));