This commit is contained in:
2021-03-30 11:56:29 +08:00
parent 4171727784
commit 482f593e3b
21 changed files with 40 additions and 24 deletions
+14
View File
@@ -15,6 +15,7 @@ use HttpServer\Service\Receive;
use HttpServer\Service\Websocket;
use JetBrains\PhpStorm\Pure;
use Snowflake\Abstracts\Config;
use Snowflake\Application;
use Snowflake\Error\Logger;
use Snowflake\Exception\ComponentException;
use Snowflake\Exception\ConfigException;
@@ -319,6 +320,19 @@ if (!function_exists('aop')) {
}
if (!function_exists('app')) {
/**
* @return Application|null
*/
#[Pure] function app(): ?Application
{
return Snowflake::app();
}
}
if (!function_exists('instance_load')) {
function instance_load()