Skip to content

Commit

Permalink
Add recipe for Sylius Media Manager plugin (#1535)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran authored Oct 2, 2023
1 parent 1a927a4 commit 970ed1e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
imports:
- { resource: "@MonsieurBizSyliusMediaManagerPlugin/Resources/config/config.yaml" }

liip_imagine:
loaders:
default:
filesystem:
data_root:
- "%sylius_core.public_dir%/media/image"
- "%sylius_core.public_dir%/media" # Add media folder
twig:
form_themes: ['@MonsieurBizSyliusMediaManagerPlugin/Admin/MediaManager/Form/_theme.html.twig']
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
monsieurbiz_sylius_media_manager_admin:
resource: "@MonsieurBizSyliusMediaManagerPlugin/Resources/config/routes.yaml"
15 changes: 15 additions & 0 deletions monsieurbiz/sylius-media-manager-plugin/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"bundles": {
"MonsieurBiz\\SyliusMediaManagerPlugin\\MonsieurBizSyliusMediaManagerPlugin": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"MONSIEURBIZ_SYLIUS_MEDIA_MANAGER_PUBLIC_FOLDER": "%kernel.project_dir%/public",
"MONSIEURBIZ_SYLIUS_MEDIA_MANAGER_ROOT_FOLDER_FROM_PUBLIC": "media",
"MONSIEURBIZ_SYLIUS_MEDIA_MANAGER_MAX_FILE_SIZE": "5M"
}
}

0 comments on commit 970ed1e

Please sign in to comment.