Skip to content

Commit

Permalink
Adjust whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
miqrogroove committed May 12, 2022
1 parent e18e322 commit 644b691
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions module.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@

public function boot(): void
{
// Get the Webtrees router.
$router = app(RouterContainer::class)->getMap();
// Retrieve the entire routing table.
$routes = $router->getRoutes();
// Delete the original home page route.
unset($routes[HomePage::class]);
$router->setRoutes($routes);
// Now recreate the home page route and point it to my customized handler.
$router->get(HomePage::class, '/', TreeHomePage::class);
// Get the Webtrees router.
$router = app(RouterContainer::class)->getMap();

// Retrieve the entire routing table.
$routes = $router->getRoutes();

// Delete the original home page route.
unset($routes[HomePage::class]);
$router->setRoutes($routes);

// Now recreate the home page route and point it to my customized handler.
$router->get(HomePage::class, '/', TreeHomePage::class);
}

/**
Expand Down

0 comments on commit 644b691

Please sign in to comment.