Handles the main request logic and fires the controller.

@param \CodeIgniter\Router\RouteCollectionInterface $routes
@param $cacheConfig
@param boolean                                      $returnResponse

@return \CodeIgniter\HTTP\RequestInterface|\CodeIgniter\HTTP\Response|\CodeIgniter\HTTP\ResponseInterface|mixed
@throws \CodeIgniter\Router\Exceptions\RedirectException