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);