$rules
$rules : array<mixed,\Imi\Server\TcpServer\Route\RouteItem>
路由规则
$rules : array<mixed,\Imi\Server\TcpServer\Route\RouteItem>
路由规则
addRuleAnnotation(\Imi\Server\TcpServer\Route\Imi\Server\Route\Annotation\TcpServer\TcpRoute $annotation, mixed $callable, array $options = array()) : void
增加路由规则,直接使用注解方式
\Imi\Server\TcpServer\Route\Imi\Server\Route\Annotation\TcpServer\TcpRoute | $annotation | |
mixed | $callable | |
array | $options |
getRules() : array<mixed,\Imi\Server\TcpServer\Route\RouteItem>
获取路由规则