Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ResolverNotFoundException.php

function ResolverNotFoundException::__construct

Parameters

string[] $alternatives:

File

vendor/symfony/http-kernel/Exception/ResolverNotFoundException.php, line 19

Class

ResolverNotFoundException

Namespace

Symfony\Component\HttpKernel\Exception

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal