/**
  * Dispatch the MVC with a URL
  * Accept a HTTP (simulate a customer action) or console route.
  *
  * The URL provided set the request URI in the request object.
  *
  * @param string      $url
  * @param string|null $method
  * @param array|null  $params
  *
  * @throws Exception
  */
 public function dispatch($url, $method = null, $params = [], $isXmlHttpRequest = false)
 {
     ob_start();
     parent::dispatch($url, $method, $params, $isXmlHttpRequest);
     $this->content = ob_get_contents();
     ob_end_clean();
 }