A config file must return an associative array of default parameters.
The following pseudo-config example shows all possible combinations:
return [
"parameters" => [
":id" => "^([1-9]\d*)$",
":identifier" => null
]
]
Parameters
- Keys must start with
:
- Keys define parameter names that can be reused in route files
- Each key maps to one of the following entry types
Entry Types
- A regular expression string, applied with
preg_match
null
to reset a previously loaded parameter