@@ -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),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user