This commit is contained in:
2024-11-05 12:15:09 +03:00
parent a02c55e16e
commit 6f7debc25b
2 changed files with 12 additions and 11 deletions

View File

@ -3,6 +3,7 @@
namespace kernel\modules\module_shop_client\controllers;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
use JetBrains\PhpStorm\NoReturn;
use kernel\AdminController;
use kernel\helpers\Debug;
@ -24,6 +25,10 @@ class ModuleShopClientController extends AdminController
$this->client = new Client();
$this->moduleService = new ModuleService();
}
/**
* @throws GuzzleException
*/
public function actionIndex(int $page_number = 1): void
{
$per_page = 8;
@ -46,6 +51,9 @@ class ModuleShopClientController extends AdminController
]);
}
/**
* @throws GuzzleException
*/
public function actionView(int $id): void
{
$token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.W10.POQZmGB7EZIayINtYhzu5r1rdgZhF9qPJpaQkl_g6pU';
@ -58,6 +66,9 @@ class ModuleShopClientController extends AdminController
$this->cgView->render("view.php", ['data' => $module_info]);
}
/**
* @throws GuzzleException
*/
public function actionInstall(): void
{
$request = new Request();