function MissingMandatoryParametersException::__construct
Parameters
string[] $missingParameters:
File
-
vendor/
symfony/ routing/ Exception/ MissingMandatoryParametersException.php, line 28
Class
- MissingMandatoryParametersException
- Exception thrown when a route cannot be generated because of missing mandatory parameters.
Namespace
Symfony\Component\Routing\ExceptionCode
public function __construct(string $routeName = '', array $missingParameters = [], int $code = 0, ?\Throwable $previous = null) {
$this->routeName = $routeName;
$this->missingParameters = $missingParameters;
$message = \sprintf('Some mandatory parameters are missing ("%s") to generate a URL for route "%s".', implode('", "', $missingParameters), $routeName);
parent::__construct($message, $code, $previous);
}