| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getConfigTreeBuilder() |
||
| 19 | { |
||
| 20 | $treeBuilder = new TreeBuilder(); |
||
| 21 | $rootNode = $treeBuilder->root('alpixel_media'); |
||
| 22 | |||
| 23 | $rootNode |
||
| 24 | ->children() |
||
| 25 | ->scalarNode('upload_folder') |
||
| 26 | ->defaultValue('%kernel.root_dir%/../web/upload/') |
||
| 27 | ->cannotBeEmpty() |
||
| 28 | ->end() |
||
| 29 | ->arrayNode('upload_configurations')->prototype('array') |
||
| 30 | ->children() |
||
| 31 | ->arrayNode('allowed_mimetypes')->prototype('scalar')->end() |
||
| 32 | ->defaultValue(['image/*', 'application/pdf']) |
||
| 33 | ->cannotBeEmpty() |
||
| 34 | ->end() |
||
| 35 | ->end() |
||
| 36 | ->end() |
||
| 37 | ->end(); |
||
| 38 | |||
| 39 | return $treeBuilder; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |