FluxBB\Server\ServerInterface::dispatch PHP Method

dispatch() public method

Resolve the request and return a response.
public dispatch ( Request $request ) : Response
$request Request
return Response
    public function dispatch(Request $request);

Usage Example

Esempio n. 1
0
 /**
  * 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();
 }
All Usage Examples Of FluxBB\Server\ServerInterface::dispatch
ServerInterface