Skip to content

Update routes config for SonataAdminBundle to PHP - #1989

Closed
willemverspyck wants to merge 1 commit into
symfony:mainfrom
willemverspyck:main
Closed

Update routes config for SonataAdminBundle to PHP#1989
willemverspyck wants to merge 1 commit into
symfony:mainfrom
willemverspyck:main

Conversation

@willemverspyck

@willemverspyck willemverspyck commented May 28, 2026

Copy link
Copy Markdown
Q A
License MIT
Packagist https://packagist.org/packages/sonata-project/admin-bundle

The XML config of SonataAdminBundle is deprecated and replaces by PHP config.

@symfony-recipes-bot
symfony-recipes-bot enabled auto-merge (squash) May 28, 2026 10:09
@@ -1,5 +1,5 @@
admin_area:
resource: "@SonataAdminBundle/Resources/config/routing/sonata_admin.xml"
resource: "@SonataAdminBundle/Resources/config/routing/sonata_admin.php"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sonata_admin.php only exists starting from version 4.39, but this recipe applies to all versions since 4.0. You would need to create a new recipe version; otherwise, this change will break installations running older versions.

https://github.com/sonata-project/SonataAdminBundle/blob/4.39.0/src/Resources/config/routing/sonata_admin.php

@diimpp

diimpp commented Jun 3, 2026

Copy link
Copy Markdown
Member

Done in #1993

@diimpp diimpp closed this Jun 3, 2026
auto-merge was automatically disabled June 3, 2026 18:24

Pull request was closed

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.

2 participants