Example #1
0
 /**
  * @param array $allowedMethods HTTP methods that are allowed.
  */
 public function __construct(array $allowedMethods = array())
 {
     parent::__construct(405);
     $this->_response->setHeaders(array('Allow' => implode(', ', $allowedMethods)));
 }
Example #2
0
 public function __construct()
 {
     parent::__construct(404);
 }