mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
[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:
@@ -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
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"container": {
|
||||
"locale": "en"
|
||||
},
|
||||
"bundles": {
|
||||
"Sylius\\Bundle\\ResourceBundle\\SyliusResourceBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user