This commit is contained in:
Yuri Kuznetsov
2023-07-27 19:46:25 +03:00
parent 048fde70e2
commit df2bd841ed

View File

@@ -80,7 +80,7 @@ class ControllerActionProcessor
if (!method_exists($controller, $primaryActionMethodName)) {
throw new NotFoundSilent(
"Action {$requestMethod} '{$actionName}' does not exist in controller '{$controllerName}'.");
"Action $requestMethod '$actionName' does not exist in controller '$controllerName'.");
}
if ($this->useShortParamList($controller, $primaryActionMethodName)) {
@@ -187,11 +187,11 @@ class ControllerActionProcessor
$className = $this->classFinder->find('Controllers', $name);
if (!$className) {
throw new NotFound("Controller '{$name}' does not exist.");
throw new NotFound("Controller '$name' does not exist.");
}
if (!class_exists($className)) {
throw new NotFound("Class not found for controller '{$name}'.");
throw new NotFound("Class not found for controller '$name'.");
}
return $className;