new procinf module

This commit is contained in:
Mark Gregory
2026-06-11 10:16:03 +01:00
parent 7ef94859fa
commit 0445b71f33
55 changed files with 2553 additions and 7 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
use Modules\Pricing\Support\ModuleInfo;
if (! function_exists('pricing_feature_enabled')) {
/**
* Check if a feature is enabled in the config.
*/
function pricing_feature_enabled(string $key): bool
{
return (bool) config(ModuleInfo::nameLower().".features.{$key}", false);
}
}