diff --git a/netbull/media-bundle/7.2/config/packages/netbull_media.yaml b/netbull/media-bundle/7.2/config/packages/netbull_media.yaml new file mode 100644 index 00000000..2d8e2fa3 --- /dev/null +++ b/netbull/media-bundle/7.2/config/packages/netbull_media.yaml @@ -0,0 +1,27 @@ +netbull_media: + default_context: 'default' + + # Uploads are stored on the local filesystem by default. For production, configure + # "filesystem.s3" instead and point the providers at "netbull_media.filesystem.s3". + filesystem: + local: + directory: '%kernel.project_dir%/public/uploads/media' + create: true + + providers: + image: + filesystem: netbull_media.filesystem.local + + # Thumbnails are generated in-process by default. Set this to true to offload resizing to a + # Symfony Messenger worker (requires "composer require symfony/messenger"). + thumbnail: + async: false + + # A context groups one or more providers with the thumbnail formats generated for them. + contexts: + default: + providers: + - netbull_media.provider.image + formats: + thumb: { width: 150, height: 150, quality: 80 } + normal: { width: 600, quality: 85 } diff --git a/netbull/media-bundle/7.2/config/routes/netbull_media.yaml b/netbull/media-bundle/7.2/config/routes/netbull_media.yaml new file mode 100644 index 00000000..94d1f6d4 --- /dev/null +++ b/netbull/media-bundle/7.2/config/routes/netbull_media.yaml @@ -0,0 +1,2 @@ +netbull_media: + resource: '@NetBullMediaBundle/config/routes.yaml' diff --git a/netbull/media-bundle/7.2/manifest.json b/netbull/media-bundle/7.2/manifest.json new file mode 100644 index 00000000..82d3cc21 --- /dev/null +++ b/netbull/media-bundle/7.2/manifest.json @@ -0,0 +1,11 @@ +{ + "bundles": { + "NetBull\\MediaBundle\\NetBullMediaBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "gitignore": [ + "/public/uploads/media/" + ] +} diff --git a/netbull/media-bundle/7.2/post-install.txt b/netbull/media-bundle/7.2/post-install.txt new file mode 100644 index 00000000..a3b1de34 --- /dev/null +++ b/netbull/media-bundle/7.2/post-install.txt @@ -0,0 +1,20 @@ + + NetBull MediaBundle + + + * A starter configuration was created at config/packages/netbull_media.yaml. + Review default_context, your contexts and their thumbnail formats. + + * The view/download routes were imported via config/routes/netbull_media.yaml + (/media/view/{id}/{format} and /media/download/{id}/{format}). + + * Uploads are stored under public/uploads/media by default. For production, + configure S3 under netbull_media.filesystem.s3 and point the providers at + netbull_media.filesystem.s3. + + * Asynchronous thumbnails are optional: run composer require symfony/messenger + and set netbull_media.thumbnail.async: true to offload resizing to a worker. + + * Ensure Doctrine maps the bundle's Media entity and run your migrations. + + Reference: https://packagist.org/packages/netbull/media-bundle