some fix
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user