The Router class uses a RouteCollection's array of routes, and determines
the correct Controller and Method to execute.

@param \CodeIgniter\Router\RouteCollectionInterface $routes
@param boolean                                      $getShared

@return \CodeIgniter\Router\Router