fix reversed priority

This commit is contained in:
sunxyw 2023-01-02 22:14:11 +08:00
parent af26086019
commit eb05cea443
No known key found for this signature in database
GPG Key ID: F391C42B19AFFC98

View File

@ -108,7 +108,7 @@ class CommandManualPlugin extends ZMPlugin
$adjacent_annotations = $this->adjacent_annotations[$command_name] ?? [];
// 遍历工厂,直到找到一个返回非空的工厂
foreach (self::$manual_factories as $factory) {
foreach (array_reverse(self::$manual_factories) as $factory) {
$manual = container()->call(
$factory,
[