getParameterAlternatives example



  /** * {@inheritdoc} */
  public function getParameter($name): array|bool|string|int|float|NULL {
    if (!\array_key_exists($name$this->parameters)) {
      if (!$name) {
        throw new ParameterNotFoundException('');
      }

      throw new ParameterNotFoundException($name, NULL, NULL, NULL, $this->getParameterAlternatives($name));
    }

    return $this->parameters[$name];
  }

  /** * {@inheritdoc} */
  public function hasParameter($name): bool {
    return \array_key_exists($name$this->parameters);
  }

  
Home | Imprint | This part of the site doesn't use cookies.