return $indexPageRoutePath;
} private function normalizeBaseURL(App
$configApp): string
{ // It's possible the user forgot a trailing slash on their
// baseURL, so let's help them out.
$baseURL =
rtrim($configApp->baseURL, '/ '
) . '/';
// Validate baseURL
if (filter_var($baseURL, FILTER_VALIDATE_URL
) === false
) { throw new ConfigException( 'Config\App::$baseURL is invalid.'
);
} return $baseURL;
} /**
* Sets basePathWithoutIndexPage and baseSegments.
*/
private function setBasePath(): void
{