Updated handler classes to use the new IRouter interface.
This commit is contained in:
parent
338945d01e
commit
e8518fde65
4 changed files with 6 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -3,13 +3,13 @@
|
||||||
/node_modules
|
/node_modules
|
||||||
/npm-debug.log
|
/npm-debug.log
|
||||||
/yarn-error.log
|
/yarn-error.log
|
||||||
|
/lib/index-dev
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
/config/config.ini
|
/config/config.ini
|
||||||
/config/github.ini
|
/config/github.ini
|
||||||
/.debug
|
/.debug
|
||||||
/.migrating
|
/.migrating
|
||||||
/lib/index-dev
|
|
||||||
|
|
||||||
# Storage
|
# Storage
|
||||||
/store
|
/store
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6e099040138fb0f53d0d179a740c0a1ec5bd5258
|
Subproject commit f8c6602ab953491a3e540d1ab9c77f2d885ee120
|
|
@ -2,7 +2,7 @@
|
||||||
namespace Misuzu\SharpChat;
|
namespace Misuzu\SharpChat;
|
||||||
|
|
||||||
use Index\Colour\Colour;
|
use Index\Colour\Colour;
|
||||||
use Index\Http\HttpFx;
|
use Index\Routing\IRouter;
|
||||||
use Misuzu\Config\IConfig;
|
use Misuzu\Config\IConfig;
|
||||||
use Misuzu\Config\CfgType;
|
use Misuzu\Config\CfgType;
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ final class SharpChatRoutes {
|
||||||
private IConfig $config;
|
private IConfig $config;
|
||||||
private string $hashKey = 'woomy';
|
private string $hashKey = 'woomy';
|
||||||
|
|
||||||
public function __construct(HttpFx $router, IConfig $config) {
|
public function __construct(IRouter $router, IConfig $config) {
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
|
||||||
$hashKey = $this->config->getValue('hashKey', CfgType::T_STR, '');
|
$hashKey = $this->config->getValue('hashKey', CfgType::T_STR, '');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Misuzu\Twitter;
|
namespace Misuzu\Twitter;
|
||||||
|
|
||||||
use Index\Http\HttpFx;
|
use Index\Routing\IRouter;
|
||||||
use Misuzu\MszContext;
|
use Misuzu\MszContext;
|
||||||
use Misuzu\Config\IConfig;
|
use Misuzu\Config\IConfig;
|
||||||
use Misuzu\Twitter\TwitterAccessToken;
|
use Misuzu\Twitter\TwitterAccessToken;
|
||||||
|
@ -14,7 +14,7 @@ final class TwitterRoutes {
|
||||||
private IConfig $config;
|
private IConfig $config;
|
||||||
private ?TwitterClientId $clientId = null;
|
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->context = $ctx;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue