1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace Symfony\Component\HttpKernel\Exception;
- class MethodNotAllowedHttpException extends HttpException
- {
-
- public function __construct(array $allow, string $message = null, \Exception $previous = null, ?int $code = 0, array $headers = [])
- {
- $headers['Allow'] = strtoupper(implode(', ', $allow));
- parent::__construct(405, $message, $previous, $headers, $code);
- }
- }
|