From 7dd4ac366758a7a7d261e4f23b88ca7e38adfdd9 Mon Sep 17 00:00:00 2001 From: Hugues Tavernier Date: Sat, 21 Aug 2021 07:14:14 +0200 Subject: [PATCH] add recipe for pentatrion/upload-bundle (#1190) * add pentatrion/upload-bundle * improve doc * fix form dependency * add doctrine annotations dependency * remove symfony 4 compatibility * configure routing with yaml file * remove default configuration * update yaml indentation --- .../0.2/config/packages/pentatrion_upload.yaml | 6 ++++++ .../0.2/config/routes/pentatrion_upload.yaml | 3 +++ pentatrion/upload-bundle/0.2/manifest.json | 8 ++++++++ pentatrion/upload-bundle/0.2/post-install.txt | 13 +++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 pentatrion/upload-bundle/0.2/config/packages/pentatrion_upload.yaml create mode 100644 pentatrion/upload-bundle/0.2/config/routes/pentatrion_upload.yaml create mode 100644 pentatrion/upload-bundle/0.2/manifest.json create mode 100644 pentatrion/upload-bundle/0.2/post-install.txt diff --git a/pentatrion/upload-bundle/0.2/config/packages/pentatrion_upload.yaml b/pentatrion/upload-bundle/0.2/config/packages/pentatrion_upload.yaml new file mode 100644 index 00000000..49797bae --- /dev/null +++ b/pentatrion/upload-bundle/0.2/config/packages/pentatrion_upload.yaml @@ -0,0 +1,6 @@ +# All available configuration can be found here: +# https://github.com/lhapaipai/upload-bundle#advanced-configuration + +pentatrion_upload: + # update to ["small"] if you have installed liip/imagine-bundle + liip_filters: [] diff --git a/pentatrion/upload-bundle/0.2/config/routes/pentatrion_upload.yaml b/pentatrion/upload-bundle/0.2/config/routes/pentatrion_upload.yaml new file mode 100644 index 00000000..a6882abf --- /dev/null +++ b/pentatrion/upload-bundle/0.2/config/routes/pentatrion_upload.yaml @@ -0,0 +1,3 @@ +_pentatrion_upload: + prefix: /media-manager + resource: "@PentatrionUploadBundle/Resources/config/routing.yaml" diff --git a/pentatrion/upload-bundle/0.2/manifest.json b/pentatrion/upload-bundle/0.2/manifest.json new file mode 100644 index 00000000..bd5a7e9c --- /dev/null +++ b/pentatrion/upload-bundle/0.2/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Pentatrion\\UploadBundle\\PentatrionUploadBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/pentatrion/upload-bundle/0.2/post-install.txt b/pentatrion/upload-bundle/0.2/post-install.txt new file mode 100644 index 00000000..2f31a069 --- /dev/null +++ b/pentatrion/upload-bundle/0.2/post-install.txt @@ -0,0 +1,13 @@ + + Getting started using pentatrion/upload-bundle + + + Configure your transformations: + 1. Install optional dependencies composer require symfony/validator liip/imagine-bundle imagine/imagine. + 2. Verify and uncomment the configuration in %CONFIG_DIR%/packages/pentatrion_upload.yaml. + 3. Create directory with Apache user access on public/uploads. + + If you have installed liip/imagine-bundle: + + 1. Complete the configuration of %CONFIG_DIR%/packages/liip_imagine.yaml with your filters. + 2. Create directory with Apache user access on public/media.