mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-21 20:36:36 +03:00
Add 4.19 recipe for sonata-project/media-bundle using PHP routing (#2055)
* Add recipe for sonata-project/media-bundle (4.19)
The bundle's routing configuration was moved from XML to PHP in
sonata-project/media-bundle#2500, released in 4.19.0.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* fix
* Revert "fix"
This reverts commit 77d95dd45e.
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
db5338a83e
commit
2ff203e72c
@@ -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: /uploads/media
|
||||
|
||||
filesystem:
|
||||
local:
|
||||
# Directory for uploads should be writable
|
||||
directory: "%kernel.project_dir%/public/uploads/media"
|
||||
create: false
|
||||
@@ -0,0 +1,4 @@
|
||||
sonata_media:
|
||||
resource: '@SonataMediaBundle/Resources/config/routing/media.php'
|
||||
type: php
|
||||
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
|
||||
Reference in New Issue
Block a user