改名
This commit is contained in:
@@ -69,6 +69,17 @@ class Router extends HttpService implements RouterInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param $port
|
||||||
|
* @param Closure|array $closure
|
||||||
|
* @throws ConfigException
|
||||||
|
*/
|
||||||
|
public function addPortListen($port, Closure|array $closure)
|
||||||
|
{
|
||||||
|
$this->addRoute('add-port-listen/' . $port, $closure, 'listen');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $path
|
* @param $path
|
||||||
* @param $handler
|
* @param $handler
|
||||||
|
|||||||
Reference in New Issue
Block a user