original_string: public function dispatch(Route $route)
      {
          $callback = $route->getCallback();
          $params = array_values($route->getData());
  
          if ($callback instanceof Closure) {
              return $this->container->resolveClosure($callback, $params);
          }
  
          $class = $this->container->make($callback[0]);
          return $this->container->resolveMethod($class, $callback[1], $params);
      }
code: public function dispatch(Route $route)
      {
          $callback = $route->getCallback();
          $params = array_values($route->getData());
  
          if ($callback instanceof Closure) {
              return $this->container->resolveClosure($callback, $params);
          }
  
          $class = $this->container->make($callback[0]);
          return $this->container->resolveMethod($class, $callback[1], $params);
      }
code_tokens: public function dispatch ( Route $ route ) { $ callback = $ route -> getCallback ( ) ; $ params = array_values ( $ route -> getData ( ) ) ; if ( $ callback instanceof Closure ) { return $ this -> container -> resolveClosure ( $ callback , $ params ) ; } $ class = $ this -> container -> make ( $ callback [ 0 ] ) ; return $ this -> container -> resolveMethod ( $ class , $ callback [ 1 ] , $ params ) ; }
docstring: Get and serve the controller
  
  @param Route $route
  @return mixed
  @throws \Exception
docstring_tokens: Get and serve the controller