. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Contracts; use Aura\Router\Map; use Aura\Router\Route; /** * Make a URL for a route. */ interface RouteFactoryInterface { /** * Generate a URL for a named route. * * @param string $route_name * @param array|null> $parameters * * @return string */ public function route(string $route_name, array $parameters = []): string; /** * @return Map */ public function routeMap(): Map; }