Compare commits
1 commit
20241005.3
...
master
Author | SHA1 | Date | |
---|---|---|---|
fc6a899f16 |
1 changed files with 4 additions and 2 deletions
|
@ -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' => '<query>'], '<section>');
|
||||
|
|
Loading…
Reference in a new issue