[Config][TwigBundle] Fixed syntax error in config
This commit is contained in:
parent
a630685da1
commit
04d369d336
@ -88,7 +88,7 @@ class Configuration implements ConfigurationInterface
|
|||||||
->arrayNode('globals')
|
->arrayNode('globals')
|
||||||
->normalizeKeys(false)
|
->normalizeKeys(false)
|
||||||
->useAttributeAsKey('key')
|
->useAttributeAsKey('key')
|
||||||
->example(['foo' => '"@bar"', 'pi' => 3.14])
|
->example(['foo' => '@bar', 'pi' => 3.14])
|
||||||
->prototype('array')
|
->prototype('array')
|
||||||
->normalizeKeys(false)
|
->normalizeKeys(false)
|
||||||
->beforeNormalization()
|
->beforeNormalization()
|
||||||
|
@ -129,7 +129,7 @@ class YamlReferenceDumper
|
|||||||
|
|
||||||
// example
|
// example
|
||||||
if ($example && !\is_array($example)) {
|
if ($example && !\is_array($example)) {
|
||||||
$comments[] = 'Example: '.$example;
|
$comments[] = 'Example: '.Inline::dump($example);
|
||||||
}
|
}
|
||||||
|
|
||||||
$default = '' != (string) $default ? ' '.$default : '';
|
$default = '' != (string) $default ? ' '.$default : '';
|
||||||
@ -165,7 +165,7 @@ class YamlReferenceDumper
|
|||||||
|
|
||||||
$this->writeLine('# '.$message.':', $depth * 4 + 4);
|
$this->writeLine('# '.$message.':', $depth * 4 + 4);
|
||||||
|
|
||||||
$this->writeArray($example, $depth + 1);
|
$this->writeArray(array_map([Inline::class, 'dump'], $example), $depth + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($children) {
|
if ($children) {
|
||||||
|
@ -42,7 +42,7 @@ array:
|
|||||||
# this is a long
|
# this is a long
|
||||||
# multi-line info text
|
# multi-line info text
|
||||||
# which should be indented
|
# which should be indented
|
||||||
child3: ~ # Example: example setting
|
child3: ~ # Example: 'example setting'
|
||||||
EOL
|
EOL
|
||||||
],
|
],
|
||||||
'Regular nested' => ['array.child2', <<<EOL
|
'Regular nested' => ['array.child2', <<<EOL
|
||||||
@ -112,7 +112,7 @@ acme_root:
|
|||||||
# this is a long
|
# this is a long
|
||||||
# multi-line info text
|
# multi-line info text
|
||||||
# which should be indented
|
# which should be indented
|
||||||
child3: ~ # Example: example setting
|
child3: ~ # Example: 'example setting'
|
||||||
scalar_prototyped: []
|
scalar_prototyped: []
|
||||||
parameters:
|
parameters:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user