Property | Type | Description | |
---|---|---|---|
$cb | match callback | ||
$extra | other matching rules | ||
$methods | add atleast 1 method for this rule to work | ||
$pattern | regexp to match on request path |
Method | Description | |
---|---|---|
__construct ( $cb, $pattern, array $methods = ['GET'], array $extra = [] ) | ||
match ( $path, $method ) |
public __construct ( $cb, $pattern, array $methods = ['GET'], array $extra = [] ) | ||
$methods | array | |
$extra | array |