Skip to content
docsv0.1.0

MissingRouteParametersException

Thrown by {@see \Milpa\Http\Routing\UrlGeneratorInterface::generate()} when a route's required path parameters were not all supplied.

MissingRouteParametersException::forRoute()

public static function forRoute(string $name, array $missing): self

Build the exception for a route missing one or more required parameters.

Parameters

Parameters of forRoute()
NameTypeDescription
$namestring
$missinglist<string>