],
'path' => is_link(($prefix = is_dir('public') ? './public/' : './').($link = 'bundles/'.str_replace('_', '', $alias))) && is_dir(realpath($prefix.$link)) || is_dir($prefix.$link) ? $link : dirname(__DIR__).'/Resources/public',
'root' => 'rapsystree',
- 'roots' => [],
'title' => 'Veranda\'s gallery system'
];
->end()
->scalarNode('path')->defaultValue($defaults['path'])->end()
->scalarNode('root')->cannotBeEmpty()->defaultValue($defaults['root'])->end()
- #TODO: see if we can't prevent key normalisation with ->normalizeKeys(false)
- #->scalarNode('roots')->cannotBeEmpty()->defaultValue($defaults['roots'])->end()
- ->variableNode('roots')
- ->treatNullLike([])
- ->defaultValue($defaults['roots'])
- #->scalarPrototype()->end()
- ->end()
->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['title'])->end()
->end()
->end();