mirror of
http://124.126.16.154:8888/singularity/hyperf-admin.git
synced 2026-01-15 05:35:08 +08:00
fix: 中间件重复导致后续中间件失效的问题
This commit is contained in:
@@ -76,6 +76,9 @@ class ProviderConfig
|
|||||||
$dependencies = array_column($arrays, 'dependencies');
|
$dependencies = array_column($arrays, 'dependencies');
|
||||||
$result['dependencies'] = array_merge(...$dependencies);
|
$result['dependencies'] = array_merge(...$dependencies);
|
||||||
}
|
}
|
||||||
|
if (isset($result['middlewares']['http'])) {
|
||||||
|
$result['middlewares']['http'] = array_unique($result['middlewares']['http']);
|
||||||
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user