mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
Add MonsieurBiz Sylius Homepage Plugin recipe (#1294)
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
imports:
|
||||
- { resource: "@MonsieurBizSyliusHomepagePlugin/Resources/config/config.yaml" }
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
monsieurbiz_sylius_homepage_admin:
|
||||
resource: "@MonsieurBizSyliusHomepagePlugin/Resources/config/routes/admin.yaml"
|
||||
prefix: /%sylius_admin.path_name%
|
||||
|
||||
monsieurbiz_sylius_homepage_homepage:
|
||||
path: /{_locale}/
|
||||
methods: [GET]
|
||||
requirements:
|
||||
_locale: ^[a-z]{2}(?:_[A-Z]{2})?$
|
||||
defaults:
|
||||
_controller: monsieurbiz_homepage.controller.homepage:indexAction
|
||||
_sylius:
|
||||
template: '@MonsieurBizSyliusHomepagePlugin/Homepage/index.html.twig'
|
||||
repository:
|
||||
method: findOneByChannelAndLocale
|
||||
arguments:
|
||||
- "expr:service('sylius.context.channel').getChannel()"
|
||||
- "expr:service('sylius.context.locale').getLocaleCode()"
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"bundles": {
|
||||
"MonsieurBiz\\SyliusHomepagePlugin\\MonsieurBizSyliusHomepagePlugin": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user