Updated handler classes to use the new IRouter interface.

This commit is contained in:
flash 2023-01-06 20:22:03 +00:00
parent 338945d01e
commit e8518fde65
4 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View file

@ -3,13 +3,13 @@
/node_modules
/npm-debug.log
/yarn-error.log
/lib/index-dev
# Configuration
/config/config.ini
/config/github.ini
/.debug
/.migrating
/lib/index-dev
# Storage
/store

@ -1 +1 @@
Subproject commit 6e099040138fb0f53d0d179a740c0a1ec5bd5258
Subproject commit f8c6602ab953491a3e540d1ab9c77f2d885ee120

View file

@ -2,7 +2,7 @@
namespace Misuzu\SharpChat;
use Index\Colour\Colour;
use Index\Http\HttpFx;
use Index\Routing\IRouter;
use Misuzu\Config\IConfig;
use Misuzu\Config\CfgType;
@ -19,7 +19,7 @@ final class SharpChatRoutes {
private IConfig $config;
private string $hashKey = 'woomy';
public function __construct(HttpFx $router, IConfig $config) {
public function __construct(IRouter $router, IConfig $config) {
$this->config = $config;
$hashKey = $this->config->getValue('hashKey', CfgType::T_STR, '');

View file

@ -1,7 +1,7 @@
<?php
namespace Misuzu\Twitter;
use Index\Http\HttpFx;
use Index\Routing\IRouter;
use Misuzu\MszContext;
use Misuzu\Config\IConfig;
use Misuzu\Twitter\TwitterAccessToken;
@ -14,7 +14,7 @@ final class TwitterRoutes {
private IConfig $config;
private ?TwitterClientId $clientId = null;
public function __construct(MszContext $ctx, HttpFx $router, IConfig $config) {
public function __construct(MszContext $ctx, IRouter $router, IConfig $config) {
$this->context = $ctx;
$this->config = $config;