protected function prepareDispatcher()
    {
        $this->dispatcher = simpleDispatcher(function (RouteCollector $r)
        {
            foreach ($this->routes as $route)
            {
                $r->addRoute(
                    $route->methods(),
                    $route->path(),
                    $route->data()
                );
            }
        });
    }