diff --git a/src/LegacyRoutes.php b/src/LegacyRoutes.php index 2e5cf1a..fc80267 100644 --- a/src/LegacyRoutes.php +++ b/src/LegacyRoutes.php @@ -2,16 +2,18 @@ namespace Misuzu; use Index\Http\Routing\{HttpGet,RouteHandler,RouteHandlerTrait}; -use Index\Urls\{UrlFormat,UrlRegistry,UrlSource,UrlSourceTrait}; +use Index\Urls\{UrlFormat,UrlRegistry,UrlSource}; class LegacyRoutes implements RouteHandler, UrlSource { - use RouteHandlerTrait, UrlSourceTrait; + use RouteHandlerTrait; public function __construct( private UrlRegistry $urls ) {} public function registerUrls(UrlRegistry $urls): void { + UrlFormat::register($urls, $this); + // eventually this should be handled by context classes $urls->register('search-index', '/search.php'); $urls->register('search-query', '/search.php', ['q' => ''], '
');