Свойство | Тип | Описание | |
---|---|---|---|
$cb | match callback | ||
$extra | other matching rules | ||
$methods | add atleast 1 method for this rule to work | ||
$pattern | regexp to match on request path |
Метод | Описание | |
---|---|---|
__construct ( $cb, $pattern, array $methods = ['GET'], array $extra = [] ) | ||
match ( $path, $method ) |
public __construct ( $cb, $pattern, array $methods = ['GET'], array $extra = [] ) | ||
$methods | array | |
$extra | array |