This commit is contained in:
2021-02-22 18:11:23 +08:00
parent cfc2d98076
commit b06c8e3da1
3 changed files with 12 additions and 27 deletions
+1 -2
View File
@@ -215,7 +215,7 @@ class Node extends HttpService
{
try {
$reflect = Snowflake::getDi()->getReflect($controller);
if (!$reflect->isInstantiable()) {
if (empty($reflect)) {
throw new Exception($controller . ' Class is con\'t Instantiable.');
}
if (!empty($action) && !$reflect->hasMethod($action)) {
@@ -446,7 +446,6 @@ class Node extends HttpService
*/
private function restructure(): static
{
var_dump($this, 'restructure');
if (empty($this->handler)) {
return $this;
}