Bulk substitution across all PHP files in src/, build.php, worker.php, and web/frontend/. Updates composer.json's package name and PSR-4 autoload root accordingly. Casing matches the existing IndifferentKetchup\Codex package's namespace convention (capital K). Strictly a namespace rename. Aternos\Codex\* imports remain in place; those get re-pointed in a follow-up commit when the codex Composer dependency itself is swapped. Filename renames (docker/mclogs.ini, web/public/css/mclogs.css), README walk-through, env-var prefix changes, and visible-text branding land in subsequent commits.
17 lines
331 B
PHP
17 lines
331 B
PHP
<?php
|
|
|
|
namespace IndifferentKetchup\Iblogs\Router;
|
|
|
|
enum Method: string
|
|
{
|
|
case GET = 'GET';
|
|
case POST = 'POST';
|
|
case PUT = 'PUT';
|
|
case DELETE = 'DELETE';
|
|
case OPTIONS = 'OPTIONS';
|
|
|
|
public static function getCurrent(): self
|
|
{
|
|
return self::tryFrom($_SERVER['REQUEST_METHOD']) ?? self::GET;
|
|
}
|
|
} |