| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 22 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 4 | public function getConfigTreeBuilder() |
|
| 28 | { |
||
| 29 | 4 | $treeBuilder = new TreeBuilder(); |
|
| 30 | 4 | $rootNode = $treeBuilder->root('fabien_crassat_curriculum_vitae'); |
|
| 31 | |||
| 32 | // Here you should define the parameters that are allowed to |
||
| 33 | // configure your bundle. See the documentation linked above for |
||
| 34 | // more information on that topic. |
||
| 35 | $rootNode |
||
| 36 | 4 | ->children() |
|
| 37 | 4 | ->scalarNode('path_to_cv') |
|
| 38 | 4 | ->info('Defines the path where the bundle grabs the curriculum vitae xml files') |
|
| 39 | 4 | ->example('%kernel.root_dir%\..\src\Acme\HelloBundle\Resources\CV') |
|
| 40 | 4 | ->end() |
|
| 41 | 4 | ->scalarNode('custo_default_cv') |
|
| 42 | 4 | ->info('It is the default curriculum vitae xml file called without route') |
|
| 43 | 4 | ->example('mycv') |
|
| 44 | 4 | ->end() |
|
| 45 | 4 | ->scalarNode('default_lang') |
|
| 46 | 4 | ->info('It is the default curriculum vitae language') |
|
| 47 | 4 | ->example('en') |
|
| 48 | 4 | ->end() |
|
| 49 | 4 | ->scalarNode('template') |
|
| 50 | 4 | ->info('Defines your own twig template for your curriculum vitae') |
|
| 51 | 4 | ->example('AcmeHelloBundle:CV:index.html.twig') |
|
| 52 | 4 | ->end() |
|
| 53 | 4 | ->end() |
|
| 54 | ; |
||
| 55 | |||
| 56 | 4 | return $treeBuilder; |
|
| 57 | } |
||
| 59 |