run() public method

Responds to the OPTIONS request.
public run ( string $id = null )
$id string
Example #1
0
 /**
  * Responds to the OPTIONS request.
  *
  * @param $id
  */
 public function actionOptions($id = null)
 {
     $action = new OptionsAction($this->action->id, $this->id);
     $action->resourceOptions = ['GET', 'DELETE', 'HEAD', 'OPTIONS'];
     // array the HTTP verbs that are supported by the resource URL
     $action->run($id);
 }