14 lines
501 B
PHP
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),
|
|
];
|