This commit is contained in:
2023-11-30 18:06:45 +08:00
parent 49b3085ab1
commit 5e2862926a
2 changed files with 15 additions and 12 deletions
+15
View File
@@ -4,6 +4,7 @@ defined('APP_PATH') or define('APP_PATH', realpath(__DIR__ . '/../../'));
use JetBrains\PhpStorm\Pure;
use Kiri\Application;
use Kiri\Config\ConfigProvider;
use Kiri\Core\ArrayAccess;
use Kiri\Di\Context;
@@ -29,6 +30,20 @@ interface Arrayable
}
if (!function_exists('application')) {
/**
* @return Application
* @throws Exception
*/
function application(): Application
{
return Kiri::getDi()->get(Application::class);
}
}
if (!function_exists('make')) {