mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进App类
This commit is contained in:
@@ -282,7 +282,7 @@ class App
|
|||||||
} else {
|
} else {
|
||||||
if (method_exists($className, 'invoke')) {
|
if (method_exists($className, 'invoke')) {
|
||||||
$method = new \ReflectionMethod($className, 'invoke');
|
$method = new \ReflectionMethod($className, 'invoke');
|
||||||
if ($method->isStatic()) {
|
if ($method->isPublic() && $method->isStatic()) {
|
||||||
$args[] = $className::invoke();
|
$args[] = $className::invoke();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user