Add recipe for media bundle 4 (#1427)

This commit is contained in:
Vincent Langlet
2022-08-03 08:50:20 +03:00
committed by GitHub
parent f0aa0d893a
commit 64e059f802
4 changed files with 38 additions and 0 deletions
@@ -0,0 +1,24 @@
sonata_media:
default_context: default
contexts:
default:
providers:
- sonata.media.provider.dailymotion
- sonata.media.provider.youtube
- sonata.media.provider.image
- sonata.media.provider.file
- sonata.media.provider.vimeo
formats:
small: { width: 100 , quality: 70}
big: { width: 500 , quality: 70}
cdn:
server:
path: /upload/media
filesystem:
local:
# Directory for uploads should be writable
directory: "%kernel.project_dir%/public/upload/media"
create: false
@@ -0,0 +1,3 @@
sonata_media:
resource: '@SonataMediaBundle/Resources/config/routing/media.xml'
prefix: /media
@@ -0,0 +1,9 @@
{
"bundles": {
"Sonata\\MediaBundle\\SonataMediaBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"public/": "%PUBLIC_DIR%/"
}
}
@@ -0,0 +1,2 @@
*
!.gitignore