Overview

Namespaces

  • Evenement
  • None
  • PHP
  • Psr
    • Http
      • Message
  • Ratchet
    • Http
    • RFC6455
      • Handshake
      • Messaging
    • Server
    • Session
      • Serialize
      • Storage
        • Proxy
    • Wamp
    • WebSocket
  • React
    • EventLoop
      • Tick
      • Timer
    • Socket
    • Stream
  • Symfony
    • Component
      • HttpFoundation
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
      • Routing
        • Annotation
        • Exception
        • Generator
          • Dumper
        • Loader
          • DependencyInjection
        • Matcher
          • Dumper
        • Tests
          • Annotation
          • Fixtures
            • AnnotatedClasses
            • OtherAnnotatedClasses
          • Generator
            • Dumper
          • Loader
          • Matcher
            • Dumper

Interfaces

  • ExceptionInterface

Exceptions

  • InvalidParameterException
  • MethodNotAllowedException
  • MissingMandatoryParametersException
  • ResourceNotFoundException
  • RouteNotFoundException
  • Overview
  • Namespace
  • Class
  • Tree

Class MethodNotAllowedException

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

This exception should trigger an HTTP 405 response in your application code.

Exception
Extended by RuntimeException
Extended by Symfony\Component\Routing\Exception\MethodNotAllowedException implements Symfony\Component\Routing\Exception\ExceptionInterface
Namespace: Symfony\Component\Routing\Exception
Author: Kris Wallsmith <kris@symfony.com>
Located at Exception/MethodNotAllowedException.php
Methods summary
public
# __construct( array $allowedMethods, mixed $message = null, mixed $code = 0, Exception $previous = null )

Overrides

Exception::__construct()
public array
# getAllowedMethods( )

Gets the allowed HTTP methods.

Gets the allowed HTTP methods.

Returns

array
Methods inherited from Exception
__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties summary
protected array $allowedMethods array()
#
Properties inherited from Exception
$code, $file, $line, $message
Ratchet API documentation generated by ApiGen 2.8.0