Project

General

Profile

Actions

Bug #104858

closed

SiteSettings->get() does return values for nested arrays in subproperties

Added by Benjamin Franzke about 2 months ago. Updated 16 days ago.

Status:
Closed
Priority:
Should have
Category:
Site Handling, Site Sets & Routing
Target version:
Start date:
2024-09-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

A setting defined via Configuration/Sets/Set1/settings.definitions.yaml that contains at least one dot in the settings key

settings:
  foo.bar:
    type: stringlist
    default: ['a', 'b']
    label: FooBar

Can not be obtained by $settings->get('foo.bar'), because array-flattening does only allow access to 'foo.bar.0' and 'foo.bar.1', but not to the array 'foo.bar'.

This is because this value is serialized as

foo:
  bar:
    - a
    - b

The SiteSettings object should maintain an access for explicitly defined keys, and provide the values as well.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #104945: SiteSettings cache is created over and over again, with every requestClosedBenjamin Franzke2024-09-12

Actions
Actions

Also available in: Atom PDF