public function __construct(RouteCollection $collection, Router $router)
{
$this->routes = $collection;
foreach ($router->getRoutes() as $route) {
$routeInfo = (new RouteInfo($route, ['router' => 'Laravel']))->toArray();
$this->routes->push($routeInfo);
}
}