| Conditions | 1 |
| Paths | 1 |
| Total Lines | 48 |
| Code Lines | 45 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 45 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 2 | public function getConfigTreeBuilder() |
|
| 30 | { |
||
| 31 | 2 | $treeBuilder = new TreeBuilder(); |
|
| 32 | 2 | $treeBuilder->root('sulu_comment') |
|
| 33 | 2 | ->children() |
|
| 34 | 2 | ->arrayNode('default_templates') |
|
| 35 | 2 | ->addDefaultsIfNotSet() |
|
| 36 | 2 | ->children() |
|
| 37 | 2 | ->scalarNode('comments')->defaultValue('SuluCommentBundle:WebsiteComment:comments.html.twig')->end() |
|
| 38 | 2 | ->scalarNode('comment')->defaultValue('SuluCommentBundle:WebsiteComment:comment.html.twig')->end() |
|
| 39 | 2 | ->end() |
|
| 40 | 2 | ->end() |
|
| 41 | 2 | ->arrayNode('types') |
|
| 42 | 2 | ->prototype('array') |
|
| 43 | 2 | ->children() |
|
| 44 | 2 | ->arrayNode('templates') |
|
| 45 | 2 | ->addDefaultsIfNotSet() |
|
| 46 | 2 | ->children() |
|
| 47 | 2 | ->scalarNode('comments')->defaultValue('SuluCommentBundle:WebsiteComment:comments.html.twig')->end() |
|
| 48 | 2 | ->scalarNode('comment')->defaultValue('SuluCommentBundle:WebsiteComment:comment.html.twig')->end() |
|
| 49 | 2 | ->end() |
|
| 50 | 2 | ->end() |
|
| 51 | 2 | ->end() |
|
| 52 | 2 | ->end() |
|
| 53 | 2 | ->end() |
|
| 54 | 2 | ->arrayNode('objects') |
|
| 55 | 2 | ->addDefaultsIfNotSet() |
|
| 56 | 2 | ->children() |
|
| 57 | 2 | ->arrayNode('comment') |
|
| 58 | 2 | ->addDefaultsIfNotSet() |
|
| 59 | 2 | ->children() |
|
| 60 | 2 | ->scalarNode('model')->defaultValue(Comment::class)->end() |
|
| 61 | 2 | ->scalarNode('repository')->defaultValue(CommentRepository::class)->end() |
|
| 62 | 2 | ->end() |
|
| 63 | 2 | ->end() |
|
| 64 | 2 | ->arrayNode('thread') |
|
| 65 | 2 | ->addDefaultsIfNotSet() |
|
| 66 | 2 | ->children() |
|
| 67 | 2 | ->scalarNode('model')->defaultValue(Thread::class)->end() |
|
| 68 | 2 | ->scalarNode('repository')->defaultValue(ThreadRepository::class)->end() |
|
| 69 | 2 | ->end() |
|
| 70 | 2 | ->end() |
|
| 71 | 2 | ->end() |
|
| 72 | 2 | ->end() |
|
| 73 | 2 | ->end(); |
|
| 74 | |||
| 75 | 2 | return $treeBuilder; |
|
| 76 | } |
||
| 77 | } |
||
| 78 |