protected function bootstrapDispatcher(): void
    {
        $this->routeDispatcher = FastRoute\simpleDispatcher(function (RouteCollector $collector) {
            foreach ($this->routes as $routeName => $route) {
                $collector->addRoute($route['method'], $route['pattern'], $route['handler']);
            }
        });
    }
protected function bootstrapDispatcher(): void
    {
        $this->routeDispatcher = FastRoute\simpleDispatcher(function (RouteCollector $collector) {
            foreach ($this->routes as $routeName => $route) {
                $collector->addRoute($route['method'], $route['pattern'], $route['handler']);
            }
        });
    }
protected function bootstrapDispatcher ( ) : void { $ this -> routeDispatcher = FastRoute \ simpleDispatcher ( function ( RouteCollector $ collector ) { foreach ( $ this -> routes as $ routeName => $ route ) { $ collector -> addRoute ( $ route [ 'method' ] , $ route [ 'pattern' ] , $ route [ 'handler' ] ) ; } } ) ; }
Prepares the route dispatcher.

@return void
Prepares the route dispatcher .