Cleaned up some things I missed.

This commit is contained in:
flash 2023-09-08 01:05:17 +00:00
parent 737c99280e
commit c68279add9

View file

@ -8,12 +8,11 @@ use Index\Data\Migration\DbMigrationManager;
use Index\Data\Migration\FsDbMigrationRepo; use Index\Data\Migration\FsDbMigrationRepo;
use Index\Http\HttpFx; use Index\Http\HttpFx;
use Index\Http\HttpRequest; use Index\Http\HttpRequest;
use Index\Routing\Router; use Index\Routing\IRouter;
use Sasae\SasaeEnvironment; use Sasae\SasaeEnvironment;
use Misuzu\Template; use Misuzu\Template;
use Misuzu\Auth\AuthContext; use Misuzu\Auth\AuthContext;
use Misuzu\Auth\AuthInfo; use Misuzu\Auth\AuthInfo;
use Misuzu\Auth\AuthTokenPacker;
use Misuzu\AuditLog\AuditLog; use Misuzu\AuditLog\AuditLog;
use Misuzu\Changelog\Changelog; use Misuzu\Changelog\Changelog;
use Misuzu\Changelog\ChangelogRoutes; use Misuzu\Changelog\ChangelogRoutes;
@ -107,8 +106,8 @@ class MisuzuContext {
return $this->config; return $this->config;
} }
public function getRouter(): Router { public function getRouter(): IRouter {
return $this->router->getRouter(); return $this->router;
} }
public function getEmotes(): Emotes { public function getEmotes(): Emotes {
@ -155,10 +154,6 @@ class MisuzuContext {
return $this->usersCtx; return $this->usersCtx;
} }
public function createAuthTokenPacker(): AuthTokenPacker {
return new AuthTokenPacker($this->config->getString('auth.secret', 'meow'));
}
public function getAuthInfo(): AuthInfo { public function getAuthInfo(): AuthInfo {
return $this->authInfo; return $this->authInfo;
} }