From 5cca82df07d47249da3a9d2453228db26768d19d Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 14 Nov 2024 01:22:18 +0000 Subject: [PATCH] Project rename! --- .gitignore | 1 + README.md | 4 ++-- composer.json | 2 +- phpstan.neon | 6 +++--- public/index.php | 6 +++--- src/AuthzContext.php | 2 +- src/HttpAcceptHeader.php | 2 +- src/OAuth2/OAuth2Routes.php | 8 ++++---- src/RpcClientWrapper.php | 2 +- src/RpcModels/Hanyuu/OAuth2AuthInfo.php | 4 ++-- src/RpcModels/Hanyuu/OAuth2RfcModel.php | 4 ++-- src/RpcModels/RpcModel.php | 2 +- ...tHandler.php => SyokuhouContentHandler.php} | 4 ++-- ...AleisterContext.php => SyokuhouContext.php} | 10 +++++----- ...rorHandler.php => SyokuhouErrorHandler.php} | 6 +++--- src/V1/V1Context.php | 6 +++--- src/V1/V1Routes.php | 2 +- src/V1/V1UsersRoutes.php | 2 +- aleister.php => syokuhou.php | 18 +++++++++--------- 19 files changed, 46 insertions(+), 45 deletions(-) rename src/{AleisterContentHandler.php => SyokuhouContentHandler.php} (94%) rename src/{AleisterContext.php => SyokuhouContext.php} (88%) rename src/{AleisterErrorHandler.php => SyokuhouErrorHandler.php} (74%) rename aleister.php => syokuhou.php (60%) diff --git a/.gitignore b/.gitignore index eb3a0bb..da035ce 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /.debug /vendor /aleister.cfg +/syokuhou.cfg diff --git a/README.md b/README.md index 3ed708c..e087346 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# Aleister +# Syokuhou -Aleister is the API gateway server for Flashii. +Syokuhou is the API gateway server for Flashii. diff --git a/composer.json b/composer.json index 918454f..91e9f0d 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "autoload": { "psr-4": { - "Aleister\\": "src" + "Syokuhou\\": "src" } }, "require": { diff --git a/phpstan.neon b/phpstan.neon index b49a357..3261a0d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -4,7 +4,7 @@ parameters: paths: - src bootstrapFiles: - - aleister.php + - syokuhou.php dynamicConstantNames: - - CRW_CLI - - CRW_DEBUG + - SKH_CLI + - SKH_DEBUG diff --git a/public/index.php b/public/index.php index 4738ca1..618898f 100644 --- a/public/index.php +++ b/public/index.php @@ -1,7 +1,7 @@ getHeaderLine('Accept')); - $contentHandler = new AleisterContentHandler($accept); + $contentHandler = new SyokuhouContentHandler($accept); if(!$contentHandler->hasAcceptableType()) return 406; - $this->router->setErrorHandler(new AleisterErrorHandler($contentHandler)); + $this->router->setErrorHandler(new SyokuhouErrorHandler($contentHandler)); $this->router->registerContentHandler($contentHandler); } } diff --git a/src/AleisterErrorHandler.php b/src/SyokuhouErrorHandler.php similarity index 74% rename from src/AleisterErrorHandler.php rename to src/SyokuhouErrorHandler.php index 348bb80..7473163 100644 --- a/src/AleisterErrorHandler.php +++ b/src/SyokuhouErrorHandler.php @@ -1,11 +1,11 @@ hasValues('sentry:dsn')) (function($cfg) { @@ -29,4 +29,4 @@ if($cfg->hasValues('sentry:dsn')) }); })($cfg->scopeTo('sentry')); -$ctx = new AleisterContext($cfg); +$ctx = new SyokuhouContext($cfg);