16 lines
471 B
PHP
16 lines
471 B
PHP
<?php
|
|
|
|
namespace kernel\modules\module_shop_client\services;
|
|
|
|
use kernel\helpers\RESTClient;
|
|
|
|
class ModuleShopClientService
|
|
{
|
|
public function getModulesInfo(string $url)
|
|
{
|
|
// $modules_info = RESTClient::request($url);
|
|
// $modules_info = json_decode($modules_info->getBody()->getContents(), true);
|
|
// $module_count = count($modules_info);
|
|
// $modules_info = array_slice($modules_info, $per_page * ($page_number - 1), $per_page);
|
|
}
|
|
} |