From 970ed1e78362155b796d75c9236ff4ea2b986102 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Mon, 2 Oct 2023 17:06:21 +0200 Subject: [PATCH] Add recipe for Sylius Media Manager plugin (#1535) --- .../monsieurbiz_media_manager_plugin.yaml | 12 ++++++++++++ .../routes/monsieurbiz_media_manager_plugin.yaml | 2 ++ .../sylius-media-manager-plugin/1.0/manifest.json | 15 +++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 monsieurbiz/sylius-media-manager-plugin/1.0/config/packages/monsieurbiz_media_manager_plugin.yaml create mode 100644 monsieurbiz/sylius-media-manager-plugin/1.0/config/routes/monsieurbiz_media_manager_plugin.yaml create mode 100644 monsieurbiz/sylius-media-manager-plugin/1.0/manifest.json diff --git a/monsieurbiz/sylius-media-manager-plugin/1.0/config/packages/monsieurbiz_media_manager_plugin.yaml b/monsieurbiz/sylius-media-manager-plugin/1.0/config/packages/monsieurbiz_media_manager_plugin.yaml new file mode 100644 index 000000000..13548b658 --- /dev/null +++ b/monsieurbiz/sylius-media-manager-plugin/1.0/config/packages/monsieurbiz_media_manager_plugin.yaml @@ -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'] diff --git a/monsieurbiz/sylius-media-manager-plugin/1.0/config/routes/monsieurbiz_media_manager_plugin.yaml b/monsieurbiz/sylius-media-manager-plugin/1.0/config/routes/monsieurbiz_media_manager_plugin.yaml new file mode 100644 index 000000000..3acc020f7 --- /dev/null +++ b/monsieurbiz/sylius-media-manager-plugin/1.0/config/routes/monsieurbiz_media_manager_plugin.yaml @@ -0,0 +1,2 @@ +monsieurbiz_sylius_media_manager_admin: + resource: "@MonsieurBizSyliusMediaManagerPlugin/Resources/config/routes.yaml" diff --git a/monsieurbiz/sylius-media-manager-plugin/1.0/manifest.json b/monsieurbiz/sylius-media-manager-plugin/1.0/manifest.json new file mode 100644 index 000000000..d7d94e624 --- /dev/null +++ b/monsieurbiz/sylius-media-manager-plugin/1.0/manifest.json @@ -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" + } +}