改名
This commit is contained in:
@@ -75,6 +75,8 @@ class Node extends HttpService
|
|||||||
$controller = implode('\\', $this->namespace) . '\\' . $controller;
|
$controller = implode('\\', $this->namespace) . '\\' . $controller;
|
||||||
}
|
}
|
||||||
$this->handler = $this->getReflect($controller, $action);
|
$this->handler = $this->getReflect($controller, $action);
|
||||||
|
|
||||||
|
$this->callback = Reduce::reduce($this->createDispatch(), $this->annotation());
|
||||||
} else if ($handler != null && !is_callable($handler, true)) {
|
} else if ($handler != null && !is_callable($handler, true)) {
|
||||||
$this->_error = 'Controller is con\'t exec.';
|
$this->_error = 'Controller is con\'t exec.';
|
||||||
} else if ($handler instanceof Closure) {
|
} else if ($handler instanceof Closure) {
|
||||||
@@ -278,7 +280,7 @@ class Node extends HttpService
|
|||||||
throw new Exception('method ' . $action . ' not exists at ' . $controller . '.');
|
throw new Exception('method ' . $action . ' not exists at ' . $controller . '.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->annotationInject($reflect->getName(), $action);
|
$this->annotationInject(get_class($controller), $action);
|
||||||
|
|
||||||
return [$reflect->newInstance(), $action];
|
return [$reflect->newInstance(), $action];
|
||||||
} catch (Throwable $exception) {
|
} catch (Throwable $exception) {
|
||||||
|
|||||||
Reference in New Issue
Block a user