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:
Michael Hirschler
2026-09-21 14:35:43 +00:00
committed by GitHub
co-authored by Claude Sonnet 5
parent db5338a83e
commit 2ff203e72c
4 changed files with 39 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: /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