改名
This commit is contained in:
@@ -82,6 +82,9 @@ class Annotation extends Component
|
|||||||
*/
|
*/
|
||||||
private function scanDir(array $paths, string $namespace, string $alias): static
|
private function scanDir(array $paths, string $namespace, string $alias): static
|
||||||
{
|
{
|
||||||
|
if ($alias == 'sockets') {
|
||||||
|
var_dump($paths);
|
||||||
|
}
|
||||||
foreach ($paths as $path) {
|
foreach ($paths as $path) {
|
||||||
$explode = explode('/', $path);
|
$explode = explode('/', $path);
|
||||||
|
|
||||||
|
|||||||
@@ -370,11 +370,12 @@ class Server extends HttpService
|
|||||||
$settings['pid_file'] = PID_PATH;
|
$settings['pid_file'] = PID_PATH;
|
||||||
}
|
}
|
||||||
$this->debug(sprintf('Check listen %s::%d -> ok', $config['host'], $config['port']));
|
$this->debug(sprintf('Check listen %s::%d -> ok', $config['host'], $config['port']));
|
||||||
if ($this->baseServer instanceof Websocket) {
|
|
||||||
$this->onLoadWebsocketHandler();
|
$this->onLoadWebsocketHandler();
|
||||||
} else if ($this->baseServer instanceof Http) {
|
if ($this->baseServer instanceof Http) {
|
||||||
$this->onLoadHttpHandler();
|
$this->onLoadHttpHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->baseServer->set($settings);
|
$this->baseServer->set($settings);
|
||||||
|
|
||||||
$this->onProcessListener();
|
$this->onProcessListener();
|
||||||
|
|||||||
Reference in New Issue
Block a user