/**
  * Creates a request object with the provided parameters and adds the
  * query parameters and the body parameters to it
  * @param string $baseUrl The base URL
  * @param string $basePath The base URL with the action path concatted
  * @param string $controller The full class name of the controller
  * @param string|null $action The name of the action method
  * @param array $parameters Array with the parameters for the action method
  * @return zibo\core\Request The created request
  */
 protected final function createRequest($baseUrl, $basePath, $controller, $action, $parameters)
 {
     $queryParameters = $this->environment->getQueryArguments();
     $bodyParameters = $this->environment->getBodyArguments();
     return new Request($baseUrl, $basePath, $controller, $action, $parameters, $queryParameters, $bodyParameters);
 }