This commit is contained in:
xl
2024-08-29 16:24:45 +08:00
parent dcf6940062
commit 4197b16132
+1 -1
View File
@@ -27,7 +27,7 @@ class Middleware
public static function set(string $className, string $method, string $middleware): void
{
$path = $className . '::' . $method;
if (!isset(static::$manager[$path])) {
if (!isset(static::$mapping[$path])) {
static::$mapping[$path] = [];
}
if (!in_array($middleware, static::$mapping[$path])) {