commit melhorias compras1
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-21 21:04:40 +02:00
parent 976271f948
commit 12dd6df28a
108 changed files with 4391 additions and 408 deletions
+6 -1
View File
@@ -1,8 +1,13 @@
<?php
$entitlements = env('SGC_PRODUCT_ENTITLEMENTS', '{}');
if (! is_string($entitlements)) {
throw new LogicException('A configuração de contextos deve ser um objecto JSON.');
}
return [
'composition' => env('SGC_PRODUCT_COMPOSITION', 'sgc'),
// Supplied with the installation, independently of company permissions.
// Keys are tenant IDs; values are the context keys purchased by that company.
'entitlements' => json_decode(env('SGC_PRODUCT_ENTITLEMENTS', '{}'), true, 32, JSON_THROW_ON_ERROR),
'entitlements' => json_decode($entitlements, true, 32, JSON_THROW_ON_ERROR),
];