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
* @return Router
* @throws ComponentException
* @throws ConfigException
* @throws ReflectionException
* @throws NotFindClassException
* @throws \Exception
*/
public function execute(array $handler): Router
{
@@ -53,6 +50,7 @@ use Snowflake\Snowflake;
$method = $this->event . '::' . (is_null($this->uri) ? 'event' : $this->uri);
var_dump($method);
$router->addRoute($method, $handler, 'sw::socket');
return $router;