Skip to content

Commit 04aebd1

Browse files
committed
Move up helper method declaration to match call order
1 parent 8b45cd9 commit 04aebd1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/framework/src/Framework/Features/XmlGenerators/SitemapGenerator.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ protected function addRoute(Route $route): void
5252
$this->addChild($urlItem, 'priority', $this->generatePriority(...$this->getRouteInformation($route)));
5353
}
5454

55+
protected function resolveRouteLink(Route $route): string
56+
{
57+
return Hyde::url($route->getOutputPath());
58+
}
59+
5560
protected function getLastModDate(string $file): string
5661
{
5762
return date('c', @Filesystem::lastModified($file) ?: Carbon::now()->timestamp);
@@ -97,11 +102,6 @@ protected function generateChangeFrequency(string $pageClass, string $identifier
97102
return $frequency;
98103
}
99104

100-
protected function resolveRouteLink(Route $route): string
101-
{
102-
return Hyde::url($route->getOutputPath());
103-
}
104-
105105
/** @return array{class-string<\Hyde\Pages\Concerns\HydePage>, string} */
106106
protected function getRouteInformation(Route $route): array
107107
{

0 commit comments

Comments
 (0)