[SyliusResourceBundle] Update routing configuration (#1831)

* [SyliusResourceBundle] Update routing configuration

* Update sylius/resource-bundle/1.13/config/packages/sylius_resource.yaml

---------

Co-authored-by: Dmitri Perunov <diimpp@gmail.com>
This commit is contained in:
Loïc Frémont
2025-09-01 09:57:52 +00:00
committed by GitHub
co-authored by Dmitri Perunov
parent 577b45237a
commit a73eb7bfc8
5 changed files with 31 additions and 1 deletions
@@ -1,4 +1,4 @@
# @see https://github.com/Sylius/SyliusResourceBundle/blob/master/docs/index.md
# @see https://stack.sylius.com/resource/index
sylius_resource:
# Override default settings
#settings:
@@ -0,0 +1,15 @@
# @see https://stack.sylius.com/resource/index
sylius_resource:
# Override default settings
#settings:
# Configure the mapping for your resources
mapping:
paths:
- '%kernel.project_dir%/src/Entity'
# Configure your resources
resources:
#app.book:
#classes:
#model: App\Entity\Book
@@ -0,0 +1,3 @@
sylius_resource_loader:
resource: 'sylius.symfony.routing.loader.resource'
type: service
+12
View File
@@ -0,0 +1,12 @@
{
"container": {
"locale": "en"
},
"bundles": {
"Sylius\\Bundle\\ResourceBundle\\SyliusResourceBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
}
}