protected function collect()
    {
        $collector = new RouteCollector;

        foreach ($this->router->routes() as $route) {
            $collector->addRoute($route[0], $route[1], $route[2]);
        }

        return $collector->getData();
    }