| Conditions | 1 |
| Paths | 1 |
| Total Lines | 45 |
| Code Lines | 40 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 25 | public function getConfigTreeBuilder() |
||
| 26 | { |
||
| 27 | $treeBuilder = new TreeBuilder(); |
||
| 28 | |||
| 29 | $treeBuilder->root('sonata_seo') |
||
| 30 | ->children() |
||
| 31 | ->scalarNode('encoding')->defaultValue('UTF-8')->end() |
||
| 32 | ->arrayNode('page') |
||
| 33 | ->addDefaultsIfNotSet() |
||
| 34 | ->children() |
||
| 35 | ->scalarNode('default')->defaultValue('sonata.seo.page.default')->end() |
||
| 36 | ->arrayNode('head') |
||
| 37 | ->normalizeKeys(false) |
||
| 38 | ->useAttributeAsKey('attribute') |
||
| 39 | ->prototype('scalar')->end() |
||
| 40 | ->end() |
||
| 41 | ->arrayNode('metas') |
||
| 42 | ->normalizeKeys(false) |
||
| 43 | ->useAttributeAsKey('element') |
||
| 44 | ->prototype('array') |
||
| 45 | ->normalizeKeys(false) |
||
| 46 | ->useAttributeAsKey('name') |
||
| 47 | ->prototype('scalar')->end() |
||
| 48 | ->end() |
||
| 49 | ->end() |
||
| 50 | ->scalarNode('separator')->defaultValue(' - ')->end() |
||
| 51 | ->scalarNode('title')->defaultValue('Sonata Project')->end() |
||
| 52 | ->end() |
||
| 53 | ->end() |
||
| 54 | ->arrayNode('sitemap') |
||
| 55 | ->addDefaultsIfNotSet() |
||
| 56 | ->children() |
||
| 57 | ->arrayNode('doctrine_orm') |
||
| 58 | ->prototype('variable')->end() |
||
| 59 | ->end() |
||
| 60 | ->arrayNode('services') |
||
| 61 | ->prototype('variable')->end() |
||
| 62 | ->end() |
||
| 63 | ->end() |
||
| 64 | ->end() |
||
| 65 | ->end() |
||
| 66 | ; |
||
| 67 | |||
| 68 | return $treeBuilder; |
||
| 69 | } |
||
| 70 | } |
||
| 71 |