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
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ final class NotificationsConfigParser extends AbstractParser

public function addSemanticConfig(NodeBuilder $nodeBuilder): void
{
/*
* Node name has been changed from "notifications" to "notifier" due to
* collision with Admin UI notifications parser.
*
* TODO: Change the name back to "notifications" in the next major version.
*/
$nodeBuilder
->arrayNode('notifications')
->arrayNode('notifier')
->children()
->arrayNode('subscriptions')
->info('Mandatory system notifications. Users cannot opt-out from below subscriptions.')
Expand All @@ -42,11 +48,11 @@ public function addSemanticConfig(NodeBuilder $nodeBuilder): void
*/
public function mapConfig(array &$scopeSettings, $currentScope, ContextualizerInterface $contextualizer): void
{
if (empty($scopeSettings['notifications'])) {
if (empty($scopeSettings['notifier'])) {
return;
}

$settings = $scopeSettings['notifications'];
$settings = $scopeSettings['notifier'];

foreach (self::MAPPED_SETTINGS as $key) {
if (!isset($settings[$key])) {
Expand Down
2 changes: 1 addition & 1 deletion src/bundle/Resources/config/prepend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
ibexa:
system:
default:
notifications:
notifier:
subscriptions: []