Constants

MethodCli

MethodCli = 'cli'

CliUnfind

CliUnfind = ':unfind'

Properties

$routerRuleDick

$routerRuleDick : 

Type

$queryString

$queryString : 

Type

$queryRawString

$queryRawString : 

Type

$queryParam

$queryParam : 

Type

Methods

listen()

listen() 

路由监听器

get()

get(  $path,   $callback) 

Parameters

$path
$callback

post()

post(  $path,   $callback) 

Parameters

$path
$callback

unfind()

unfind(callable  $callback) 

未发现路由的处理

Parameters

callable $callback

getPath()

getPath() : string

Returns

string

cli()

cli(string  $name, mixed  $callback) 

cli 模式下路由

Parameters

string $name
mixed $callback

match()

match(string  $method, string  $rule,   $callback) 

Parameters

string $method
string $rule
$callback

matchTheWebRule()

matchTheWebRule(  $rule) : boolean

web 路由规则检测

Parameters

$rule

Returns

boolean

getStdRuleStr()

getStdRuleStr(string  $rule) : boolean|string

获取标准的规则字符串

Parameters

string $rule

Returns

boolean|string

webListener()

webListener() 

web 监听处理

webAutoRouter()

webAutoRouter() : boolean

Returns

boolean

cliAutoRouter()

cliAutoRouter() : boolean

Returns

boolean

cliListener()

cliListener() 

cli 程序路由

matchTheCliRule()

matchTheCliRule(  $name) : array|null

cli rule 解析

Parameters

$name

Returns

array|null