Files
hdk-core/tests/prepend.php
2023-08-29 15:08:53 +08:00

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);
})();