[sylius/resource-bundle] Sylius routes with attributes and default mapping paths (#1499)

* Sylius configuration for routes with attributes' feature

* Add default mapping paths
This commit is contained in:
Loïc Frémont
2023-04-21 09:19:49 +02:00
committed by GitHub
parent 01797b055d
commit 2a039515ea
3 changed files with 33 additions and 0 deletions
@@ -0,0 +1,15 @@
# @see https://github.com/Sylius/SyliusResourceBundle/blob/master/docs/index.md
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,7 @@
sylius_crud_routes:
resource: 'sylius.routing.loader.crud_routes_attributes'
type: service
sylius_routes:
resource: 'sylius.routing.loader.routes_attributes'
type: service
+11
View File
@@ -0,0 +1,11 @@
{
"container": {
"locale": "en"
},
"bundles": {
"Sylius\\Bundle\\ResourceBundle\\SyliusResourceBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}