1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace Symfony\Component\Routing\Exception;
- class MethodNotAllowedException extends \RuntimeException implements ExceptionInterface
- {
-
- protected $allowedMethods = array();
- public function __construct(array $allowedMethods, $message = null, $code = 0, \Exception $previous = null)
- {
- $this->allowedMethods = array_map('strtoupper', $allowedMethods);
- parent::__construct($message, $code, $previous);
- }
-
- public function getAllowedMethods()
- {
- return $this->allowedMethods;
- }
- }
|