| @@ 88-103 (lines=16) @@ | ||
| 85 | return $rootNode; |
|
| 86 | } |
|
| 87 | ||
| 88 | protected function addOrm() |
|
| 89 | { |
|
| 90 | $treeBuilder = new TreeBuilder(); |
|
| 91 | $rootNode = $treeBuilder->root('orm'); |
|
| 92 | $rootNode |
|
| 93 | ->addDefaultsIfNotSet() |
|
| 94 | ->children() |
|
| 95 | ->scalarNode('entity_manager') |
|
| 96 | ->info('This only needs to be set if orm is used for any of the managers, and you do not want to use the default entity manager') |
|
| 97 | ->defaultValue('default') |
|
| 98 | ->cannotBeEmpty() |
|
| 99 | ->end() |
|
| 100 | ->end(); |
|
| 101 | ||
| 102 | return $rootNode; |
|
| 103 | } |
|
| 104 | ||
| 105 | protected function addOdm() |
|
| 106 | { |
|
| @@ 105-120 (lines=16) @@ | ||
| 102 | return $rootNode; |
|
| 103 | } |
|
| 104 | ||
| 105 | protected function addOdm() |
|
| 106 | { |
|
| 107 | $treeBuilder = new TreeBuilder(); |
|
| 108 | $rootNode = $treeBuilder->root('odm'); |
|
| 109 | $rootNode |
|
| 110 | ->addDefaultsIfNotSet() |
|
| 111 | ->children() |
|
| 112 | ->scalarNode('document_manager') |
|
| 113 | ->info('This only needs to be set if odm is used for any of the managers, and you do not want to use the default document manager') |
|
| 114 | ->defaultValue('default') |
|
| 115 | ->cannotBeEmpty() |
|
| 116 | ->end() |
|
| 117 | ->end(); |
|
| 118 | ||
| 119 | return $rootNode; |
|
| 120 | } |
|
| 121 | ||
| 122 | protected function addManager() |
|
| 123 | { |
|
| @@ 243-257 (lines=15) @@ | ||
| 240 | return $rootNode; |
|
| 241 | } |
|
| 242 | ||
| 243 | protected function addAdmin() |
|
| 244 | { |
|
| 245 | $treeBuilder = new TreeBuilder(); |
|
| 246 | $rootNode = $treeBuilder->root('admin'); |
|
| 247 | $rootNode |
|
| 248 | ->addDefaultsIfNotSet() |
|
| 249 | ->children() |
|
| 250 | ->scalarNode('chartjs') |
|
| 251 | ->defaultValue('https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.bundle.min.js') |
|
| 252 | ->info('This can be changed to say a locally hosted path or url.')->end() |
|
| 253 | ->end() |
|
| 254 | ->end(); |
|
| 255 | ||
| 256 | return $rootNode; |
|
| 257 | } |
|
| 258 | ||
| 259 | protected function addRedis() |
|
| 260 | { |
|