Files
api/services/nginx/app/modules/gatewayapi/config/gatewayapi_enabled_c.php
T
Jepp9350 849f1cc53e Add GatewayAPI module with configuration, routing, and core logic
Introduced a new GatewayAPI module to handle SMS messaging integration. This includes interfaces, core classes for API interaction, configuration management, and routing for config retrieval and update. Added necessary initializations in `index.php` to integrate the module seamlessly.
2025-04-10 10:51:32 +02:00

29 lines
508 B
PHP

<?php
namespace gatewayapi\config;
use Exception;
use traits\module_config_variable;
class gatewayapi_enabled_c
{
use module_config_variable;
/**
* @throws Exception
*/
public function __construct()
{
self::setupConfigVariable(
'GatewayAPI',
'enabled',
'bool',
true,
null,
'Whether the GatewayAPI module is enabled or not',
'1',
false,
'false'
);
}
}