mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-17 18:16:46 +03:00
Add 4.39 recipe for sonata-project/admin-bundle using PHP routing (#1993)
Symfony 8.0 removed XmlFileLoader support for routing (deprecated in 7.4). The PHP routing file sonata_admin.php was introduced in SonataAdminBundle 4.39, so a new recipe version is required rather than modifying the existing 4.0 recipe. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
658a26dd7f
commit
06f445b3b7
@@ -0,0 +1,10 @@
|
||||
sonata_admin:
|
||||
title: 'Sonata Admin'
|
||||
dashboard:
|
||||
blocks:
|
||||
- { type: sonata.admin.block.admin_list, position: left }
|
||||
|
||||
sonata_block:
|
||||
blocks:
|
||||
sonata.admin.block.admin_list:
|
||||
contexts: [admin]
|
||||
@@ -0,0 +1,9 @@
|
||||
admin_area:
|
||||
resource: "@SonataAdminBundle/Resources/config/routing/sonata_admin.php"
|
||||
type: php
|
||||
prefix: /admin
|
||||
|
||||
_sonata_admin:
|
||||
resource: .
|
||||
type: sonata_admin
|
||||
prefix: /admin
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Sonata\\AdminBundle\\SonataAdminBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user