改名
This commit is contained in:
@@ -191,13 +191,13 @@ abstract class BaseApplication extends Service
|
|||||||
if (!is_callable($value, true)) {
|
if (!is_callable($value, true)) {
|
||||||
throw new InitException("Class does not hav callback.");
|
throw new InitException("Class does not hav callback.");
|
||||||
}
|
}
|
||||||
$event->on($key, $value);
|
$event->on($key, $value, [], true);
|
||||||
} else {
|
} else {
|
||||||
foreach ($value as $item) {
|
foreach ($value as $item) {
|
||||||
if (!is_callable($item, true)) {
|
if (!is_callable($item, true)) {
|
||||||
throw new InitException("Class does not hav callback.");
|
throw new InitException("Class does not hav callback.");
|
||||||
}
|
}
|
||||||
$event->on($key, $item);
|
$event->on($key, $item, [], true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user