Skip to content

Commit

Permalink
Fix deprecated symfony > 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Coosos committed Dec 31, 2018
1 parent 5396850 commit e069870
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$treeBuilder->root('coosos_user_role_type');

// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
// more information on that topic.
$treeBuilder = new TreeBuilder('coosos_user_role_type');
$rootNode = (method_exists($treeBuilder, 'getRootNode'))
? $treeBuilder->getRootNode()
: $treeBuilder->root("coosos_user_role_type");

return $treeBuilder;
}
Expand Down

0 comments on commit e069870

Please sign in to comment.