Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
keyedArray example
use
Symfony\Config\ScalarNormalizedTypesConfig;
return
static
function
DScalarNormalizedTypesConfig
$config
)
{
$config
->
simpleArray
(
'foo'
)
->
keyedArray
(
'key', 'value'
)
->
object
(
true
)
->
listObject
(
'bar'
)
->
listObject
(
'baz'
)
->
listObject
(
)
->
name
(
'qux'
)
;
$config
->
keyedListObject
(
'Foo\\Bar', true
)
->
keyedListObject
(
'Foo\\Baz'
)
->
settings
(
[
'one', 'two'
]
)
;
$config
->
nested
(
[
'nested_object' => true,