File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
src/LightSaml/SpBundle/DependencyInjection Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 2020 },
2121 "require" : {
2222 "php" : " >=5.6" ,
23- "symfony/framework-bundle" : " ~2.7|~3.0|~4.0" ,
24- "symfony/security-bundle" : " ~2.7|~3.0|~4.0" ,
23+ "symfony/framework-bundle" : " ~2.7|~3.0|~4.0|~5.0 " ,
24+ "symfony/security-bundle" : " ~2.7|~3.0|~4.0|~5.0 " ,
2525 "lightsaml/symfony-bridge" : " ~1.3"
2626 },
2727 "require-dev" : {
Original file line number Diff line number Diff line change @@ -25,8 +25,14 @@ class Configuration implements ConfigurationInterface
2525 */
2626 public function getConfigTreeBuilder ()
2727 {
28- $ treeBuilder = new TreeBuilder ();
29- $ root = $ treeBuilder ->root ('light_saml_sp ' );
28+ $ treeBuilder = new TreeBuilder ('light_saml_sp ' );
29+
30+ if (method_exists ($ treeBuilder , 'getRootNode ' )) {
31+ $ root = $ treeBuilder ->getRootNode ();
32+ } else {
33+ // BC layer for symfony/config 4.1 and older
34+ $ root = $ treeBuilder ->root ('light_saml_sp ' );
35+ }
3036
3137 $ root
3238 ->children ()
You can’t perform that action at this time.
0 commit comments