-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathConfiguration.php
More file actions
29 lines (23 loc) · 871 Bytes
/
Configuration.php
File metadata and controls
29 lines (23 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
declare(strict_types=1);
namespace AceEditorBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('ace_editor');
$rootNode = $treeBuilder->getRootNode();
$rootNode
->children()
->booleanNode('autoinclude')->defaultTrue()->end()
->scalarNode('base_path')->defaultValue('vendor/ace')->end()
->booleanNode('debug')->defaultFalse()->end()
->booleanNode('use_stimulus')->defaultNull()->end()
->booleanNode('noconflict')->defaultTrue()->end()
->end()
->end();
return $treeBuilder;
}
}