function ResolverNotFoundException::__construct
Parameters
string[] $alternatives:
File
-
vendor/
symfony/ http-kernel/ Exception/ ResolverNotFoundException.php, line 19
Class
Namespace
Symfony\Component\HttpKernel\ExceptionCode
public function __construct(string $name, array $alternatives = []) {
$msg = \sprintf('You have requested a non-existent resolver "%s".', $name);
if ($alternatives) {
if (1 === \count($alternatives)) {
$msg .= ' Did you mean this: "';
}
else {
$msg .= ' Did you mean one of these: "';
}
$msg .= implode('", "', $alternatives) . '"?';
}
parent::__construct($msg);
}