改名
This commit is contained in:
@@ -84,6 +84,27 @@ class Node extends Application
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function hasAfter()
|
||||
{
|
||||
return count($this->_after) > 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $response
|
||||
* @return mixed|null
|
||||
*/
|
||||
public function afterDispatch($response)
|
||||
{
|
||||
return Reduce::reduce(function () use ($response) {
|
||||
return $response;
|
||||
}, $this->_after);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
@@ -102,7 +123,6 @@ class Node extends Application
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
@@ -391,6 +411,15 @@ class Node extends Application
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function dispatch()
|
||||
{
|
||||
return call_user_func($this->callback, \request());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $array
|
||||
* @param $_temp
|
||||
|
||||
Reference in New Issue
Block a user