Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/Setting/Attribute/Request/UpdateSettingsRequestBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,25 @@ public function __construct()
],
type: 'object',
),
new Property(
property: 'email',
properties: [
new Property(
property: 'debug',
properties: [
new Property(
property: 'email_addresses',
description: 'Debug email addresses',
type: 'array',
items: new Items(type: 'string'),
example: ['debug@example.com']
),
],
type: 'object',
),
],
type: 'object',
),
],
type: 'object',
),
Expand Down
2 changes: 2 additions & 0 deletions src/Setting/MappedParameter/UpdateSettingsParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
private ?array $objects = null,
private ?array $assets = null,
private ?array $documents = null,
private ?array $email = null,

Check notice on line 26 in src/Setting/MappedParameter/UpdateSettingsParameter.php

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/Setting/MappedParameter/UpdateSettingsParameter.php#L26

Incorrect spacing between argument "$email" and equals sign; expected 0 but found 1
) {
}

Expand All @@ -33,6 +34,7 @@
'objects' => $this->objects,
'assets' => $this->assets,
'documents' => $this->documents,
'email' => $this->email,
], static fn ($value) => $value !== null);
}
}
1 change: 1 addition & 0 deletions src/Setting/Provider/SystemSettingsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public function prepareSettingsForUpdate(array $data): array
$preparedData['general.redirect_to_maindomain'] = $data['general']['redirect_to_maindomain'];
$preparedData['general.defaultLanguage'] = $data['general']['default_language'];
$preparedData['general.debug_admin_translations'] = $data['general']['debug_admin_translations'];
$preparedData['email.debug.emailAddresses'] = implode(',', $data['email']['debug']['email_addresses'] ?? []);

return $preparedData;
}
Expand Down
Loading