bigz/s3url

A subscriber for s3 urls in APIs

1.0.2 2018-07-16 15:33 UTC

This package is not auto-updated.

Last update: 2024-03-20 19:18:48 UTC


README

Subscribe to JSON encoding event in jms serializer Decorate with an s3 url the parameters marked with the @uploadedfile annotation

Usage

    app.s3_public_url_subscriber:
        public: true
        class: S3Url\Subscriber\S3PublicUrlSubscriber
        arguments: ['@annotations.cached_reader', "%env(AWS_REGION)%", "%env(AWS_BUCKET)%"]
        tags:
            - { name: jms_serializer.event_subscriber }