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
This commit is contained in:
Hugues Tavernier
2021-08-21 07:14:14 +02:00
committed by GitHub
parent 4c8aabcae5
commit 7dd4ac3667
4 changed files with 30 additions and 0 deletions

View File

@@ -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: []

View File

@@ -0,0 +1,3 @@
_pentatrion_upload:
prefix: /media-manager
resource: "@PentatrionUploadBundle/Resources/config/routing.yaml"

View File

@@ -0,0 +1,8 @@
{
"bundles": {
"Pentatrion\\UploadBundle\\PentatrionUploadBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}

View File

@@ -0,0 +1,13 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> Getting started using </><bg=blue;fg=white;options=bold>pentatrion/upload-bundle</><bg=blue;fg=white> </>
<bg=blue;fg=white> </>
<fg=blue;options=bold>Configure</> <fg=blue>your transformations:</>
1. Install optional dependencies <comment>composer require symfony/validator liip/imagine-bundle imagine/imagine</>.
2. Verify and uncomment the configuration in <comment>%CONFIG_DIR%/packages/pentatrion_upload.yaml</>.
3. Create directory with Apache user access on <comment>public/uploads</>.
<fg=blue>If you have installed </><fg=blue;options=bold>liip/imagine-bundle</><fg=blue>:</>
1. Complete the configuration of <comment>%CONFIG_DIR%/packages/liip_imagine.yaml</> with your filters.
2. Create directory with Apache user access on <comment>public/media</>.