new Route()
Creates a new Route object for the given pattern(s), method(s) and the callback action
Parameters
Name | Type | Default |
---|---|---|
$pattern * | string |
– |
$method * | string |
– |
$action * | Closure |
– |
$attributes | array |
[ ] |