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

Breadcrumb

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

function MethodNotAllowedException::__construct

Parameters

string[] $allowedMethods:

File

vendor/symfony/routing/Exception/MethodNotAllowedException.php, line 28

Class

MethodNotAllowedException
The resource was found but the request method is not allowed.

Namespace

Symfony\Component\Routing\Exception

Code

public function __construct(array $allowedMethods, string $message = '', int $code = 0, ?\Throwable $previous = null) {
    $this->allowedMethods = array_map('strtoupper', $allowedMethods);
    parent::__construct($message, $code, $previous);
}

API Navigation

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