Files
compras/config/work_context.php
T
nala 12dd6df28a
tests / ci (push) Waiting to run
commit melhorias compras1
2026-11-21 21:04:40 +02:00

14 lines
501 B
PHP

<?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($entitlements, true, 32, JSON_THROW_ON_ERROR),
];