. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Contracts; /** * 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; }