This commit is contained in:
2025-12-07 02:24:48 +01:00
parent 24c7c215ee
commit 37318e69fb
4 changed files with 315 additions and 6 deletions

View File

@@ -104,6 +104,15 @@ $tablesDefaults = [
];
$tables = array_replace($tablesDefaults, $overrides['tables'] ?? []);
$placeholdersDefaults = [
'bridge' => [
'url' => getenv('EMAILTEMPLATE_PLACEHOLDER_URL') ?: '',
'token' => getenv('EMAILTEMPLATE_PLACEHOLDER_TOKEN') ?: '',
'cache_ttl' => (int)(getenv('EMAILTEMPLATE_PLACEHOLDER_CACHE') ?: 300),
],
];
$placeholders = array_replace_recursive($placeholdersDefaults, $overrides['placeholders'] ?? []);
$columnsDefaults = [
'templates' => ['id'=>'id','name'=>'name','desc'=>null,'cat'=>null,'upd'=>'updated_at'],
'sections' => ['id'=>'id','name'=>'name','cat'=>null,'upd'=>'updated_at'],
@@ -123,4 +132,5 @@ return [
'multi' => $multi,
'tables' => $tables,
'columns' => $columns,
'placeholders' => $placeholders,
];