コード例 #1
0
ファイル: Command.php プロジェクト: fluxbb/core
 /**
  * Let the FluxBB server execute the given action and return its response data.
  *
  * @param string $action
  * @param array $parameters
  * @return array
  */
 public function dispatch($action, array $parameters = [])
 {
     return $this->server->dispatch(new Request($action, $parameters))->getData();
 }
コード例 #2
0
ファイル: RequestValidator.php プロジェクト: fluxbb/core
 /**
  * Resolve the request and return a response.
  *
  * @param \FluxBB\Server\Request $request
  * @return \FluxBB\Server\Response
  * @throws \FluxBB\Server\Exception\Exception
  */
 public function dispatch(Request $request)
 {
     $this->validate($request);
     return $this->next->dispatch($request);
 }
コード例 #3
0
ファイル: Controller.php プロジェクト: fluxbb/core
 /**
  * Let the FluxBB server execute the given action and return its response data.
  *
  * @param string $action
  * @param array $parameters
  * @return array
  */
 protected function execute($action, array $parameters = [])
 {
     $parameters += $this->input;
     return $this->server->dispatch(new ServerRequest($action, $parameters))->getData();
 }
コード例 #4
0
ファイル: AuthorizationServer.php プロジェクト: fluxbb/core
 /**
  * Resolve the request and return a response.
  *
  * @param \FluxBB\Server\Request $request
  * @return \FluxBB\Server\Response
  * @throws \FluxBB\Server\Exception\Exception
  */
 public function dispatch(Request $request)
 {
     $this->authorize($request);
     return $this->next->dispatch($request);
 }