This commit is contained in:
2021-08-02 18:43:12 +08:00
parent 5b473b2d5a
commit ce1952d796
4 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ use HttpServer\Http\Response;
use HttpServer\Route\Router;
use JetBrains\PhpStorm\Pure;
use Snowflake\Abstracts\Config;
use Snowflake\Aop;
use Snowflake\Application;
use Snowflake\Core\ArrayAccess;
use Snowflake\Core\Json;
@@ -312,7 +313,7 @@ if (!function_exists('aop')) {
*/
function aop(mixed $handler, array $params = []): mixed
{
return Snowflake::app()->get('aop')->dispatch($handler, $params);
return Snowflake::getDi()->get(Aop::class)->dispatch($handler, $params);
}
}