Skip to content

Update Configuration.php for deprecation fix SF5.0#88

Open
remigarcia wants to merge 1 commit intopix-digital:masterfrom
remigarcia:patch-1
Open

Update Configuration.php for deprecation fix SF5.0#88
remigarcia wants to merge 1 commit intopix-digital:masterfrom
remigarcia:patch-1

Conversation

@remigarcia
Copy link
Copy Markdown

No description provided.

$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('pix_sortable_behavior');
$treeBuilder = new TreeBuilder('pix_sortable_behavior');
$rootNode = $treeBuilder->getRootNode();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a BC layer for this deprecation notice

Suggested change
$rootNode = $treeBuilder->getRootNode();
$builder = new TreeBuilder('pix_sortable_behavior');
if (\method_exists($builder, 'getRootNode')) {
$rootNode = $builder->getRootNode();
} else {
// BC layer for symfony/config 4.1 and older
$rootNode = $builder->root('pix_sortable_behavior');
}

@PierrickMartos
Copy link
Copy Markdown

Hi @nicolasricci , could you merge it? thanks

@Fl0ux
Copy link
Copy Markdown

Fl0ux commented Dec 18, 2020

Any news about it ? I need it too !

@nicolasricci
Copy link
Copy Markdown
Member

@remigarcia @tifabien Sorry guys, not been using this bundle for a while and I don't really have time to maintain it at the minute. Would any (or both) of you be interested to be added to the repository to maintain it?

@dmitryuk
Copy link
Copy Markdown

Sonata admin officially migrated to runroom-packages/sortable-behavior-bundle, try it instead.
https://symfony.com/bundles/SonataAdminBundle/current/cookbook/recipe_sortable_listing.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants