Skip to content

Conversation

@remigarcia
Copy link

No description provided.

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

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

Hi @nicolasricci , could you merge it? thanks

@Fl0ux
Copy link

Fl0ux commented Dec 18, 2020

Any news about it ? I need it too !

@nicolasricci
Copy link
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

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