Skip to content

Commit 5c6e1be

Browse files
committed
feat: update source to use leaf hooks
1 parent 815f955 commit 5c6e1be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Sitemap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Sitemap
3333
*/
3434
public static function source(callable $datasource)
3535
{
36-
$datasource(self::$sitemap);
36+
app()->hook('router.before', $datasource);
3737
}
3838

3939
/**

0 commit comments

Comments
 (0)