Skip to content

Kirby 3.7.5

new Route()

Creates a new Route object for the given pattern(s), method(s) and the callback action

new Route(string|array $pattern, string|array $method, Closure $action, array $attributes = [ ])

Parameters

Name Type Default
$pattern * string|array
$method * string|array
$action * Closure
$attributes array [ ]

Parent class

Kirby\Http\Route