13 lines
324 B
PHP
13 lines
324 B
PHP
<?php
|
|
use Modules\Licensing\Support\ModuleInfo;
|
|
|
|
if (! function_exists('licensing_feature_enabled')) {
|
|
/**
|
|
* Check if a feature is enabled in the config.
|
|
*/
|
|
function licensing_feature_enabled(string $key): bool
|
|
{
|
|
return (bool) config(ModuleInfo::nameLower().".features.{$key}", false);
|
|
}
|
|
}
|