From efe56f455755daa452513a97f1566b53f199fa21 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 9 May 2024 10:04:13 +0300 Subject: [PATCH] init kevacoin controller type --- composer.json | 3 ++- src/Controller/Nex/Kevacoin.php | 3 +++ src/server.php | 16 +++++++++------- 3 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 src/Controller/Nex/Kevacoin.php diff --git a/composer.json b/composer.json index a5b0237..8c2f4c7 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,8 @@ "homepage": "https://github.com/yggverse/pulsar", "type": "project", "require": { - "cboden/ratchet": "^0.4.4" + "cboden/ratchet": "^0.4.4", + "kevachat/kevacoin": "^1.10" }, "license": "MIT", "autoload": { diff --git a/src/Controller/Nex/Kevacoin.php b/src/Controller/Nex/Kevacoin.php new file mode 100644 index 0000000..5820b8a --- /dev/null +++ b/src/Controller/Nex/Kevacoin.php @@ -0,0 +1,3 @@ +get('root') -); - // Start server try { @@ -36,8 +31,15 @@ try case 'fs': $controller = new \Yggverse\Next\Controller\Nex\Filesystem( - $environment, - $filesystem + $environment + ); + + break; + + case 'keva': + + $controller = new \Yggverse\Next\Controller\Nex\Kevacoin( + $environment ); break;