File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,13 @@ class Configuration implements ConfigurationInterface
17
17
*/
18
18
public function getConfigTreeBuilder ()
19
19
{
20
- $ treeBuilder = new TreeBuilder ();
21
- $ rootNode = $ treeBuilder ->root ('donato_path_well ' );
20
+ $ treeBuilder = new TreeBuilder ('donato_path_well ' );
21
+ // Keep compatibility with symfony/config < 4.2
22
+ if (!method_exists ($ treeBuilder , 'getRootNode ' )) {
23
+ $ rootNode = $ treeBuilder ->root ('donato_path_well ' );
24
+ } else {
25
+ $ rootNode = $ treeBuilder ->getRootNode ();
26
+ }
22
27
23
28
$ rootNode
24
29
->children ()
Original file line number Diff line number Diff line change 11
11
],
12
12
"require" : {
13
13
"php" : " >=5.4.16" ,
14
- "symfony/validator" : " >= 2.8" ,
15
- "symfony/framework-bundle" : " >= 2.8"
14
+ "symfony/validator" : " ^ 2.8|^3.0|^4.0|^5.0 " ,
15
+ "symfony/framework-bundle" : " ^ 2.8|^3.0|^4.0|^5.0 "
16
16
},
17
17
"autoload" : {
18
18
"psr-4" : {
You can’t perform that action at this time.
0 commit comments