This commit is contained in:
2021-04-14 17:22:45 +08:00
parent 9dd5432205
commit d0d4b46fd3
+2 -4
View File
@@ -41,10 +41,7 @@ use Snowflake\Snowflake;
/** /**
* @param array $handler * @param array $handler
* @return Router * @return Router
* @throws ComponentException * @throws \Exception
* @throws ConfigException
* @throws ReflectionException
* @throws NotFindClassException
*/ */
public function execute(array $handler): Router public function execute(array $handler): Router
{ {
@@ -53,6 +50,7 @@ use Snowflake\Snowflake;
$method = $this->event . '::' . (is_null($this->uri) ? 'event' : $this->uri); $method = $this->event . '::' . (is_null($this->uri) ? 'event' : $this->uri);
var_dump($method);
$router->addRoute($method, $handler, 'sw::socket'); $router->addRoute($method, $handler, 'sw::socket');
return $router; return $router;