chore: Проверки для типов
This commit is contained in:
parent
6fdc3eb46b
commit
5d3fae4249
15 changed files with 125 additions and 42 deletions
|
|
@ -96,11 +96,12 @@ class Component
|
|||
}
|
||||
|
||||
$this->before();
|
||||
if (method_exists($this, $action)) {
|
||||
return call_user_func([$this, $action], $crequest);
|
||||
} else {
|
||||
return $this->actionIndex($crequest);
|
||||
$actionMethod = [$this, $action];
|
||||
if (is_callable($actionMethod)) {
|
||||
return call_user_func($actionMethod, $crequest);
|
||||
}
|
||||
|
||||
return $this->actionIndex($crequest);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue