mirror of
http://124.126.16.154:8888/singularity/HyperfDevelopmentKitCore.git
synced 2026-01-15 07:15:06 +08:00
29 lines
634 B
PHP
29 lines
634 B
PHP
<?php
|
|
|
|
/**
|
|
* prepend.php@Core
|
|
*
|
|
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
|
* Powered by PhpStorm
|
|
* Created on 2023/8/29
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
use Hyperf\Context\ApplicationContext;
|
|
use Hyperf\Di\ClassLoader;
|
|
use Hyperf\Di\Container;
|
|
use Hyperf\Di\Definition\DefinitionSourceFactory;
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
defined('BASE_PATH') or define('BASE_PATH', dirname(__DIR__, 1));
|
|
|
|
(function () {
|
|
ClassLoader::init();
|
|
|
|
ApplicationContext::setContainer(
|
|
new Container((new DefinitionSourceFactory())())
|
|
);
|
|
// $container->get(Hyperf\Contract\ApplicationInterface::class);
|
|
})();
|