fre5h / VichUploaderSerializationBundle

📦 Provides integration between VichUploaderBundle and JMSSerializerBundle.

Home Page:https://github.com/fre5h/VichUploaderSerializationBundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Symfony Flex support

Bukashk0zzz opened this issue · comments

Now I use this bundle in Symfony flex project and to run this bundle I need put in my service config this setting:

    Monolog\Logger: '@Psr\Log\LoggerInterface'
    Symfony\Component\PropertyAccess\PropertyAccessor: '@Symfony\Component\PropertyAccess\PropertyAccessorInterface'
    Vich\UploaderBundle\Storage\StorageInterface: '@vich_uploader.storage'
    Vich\UploaderBundle\Storage\FlysystemStorage: '@vich_uploader.storage.flysystem'
    Vich\UploaderBundle\Handler\DownloadHandler: '@vich_uploader.download_handler'
    Vich\UploaderBundle\Templating\Helper\UploaderHelper: '@vich_uploader.templating.helper.uploader_helper'

    Fresh\VichUploaderSerializationBundle\EventListener\JmsSerializerSubscriber:
        arguments:
            $annotationReader: '@Doctrine\Common\Annotations\Reader'
        tags:
            - 'jms_serializer.event_subscriber'
            - { name: monolog.logger, channel: vich_uploader_serialization }

I think we can make life better if change __construct parameters in JmsSerializerSubscriber to interfaces. What you think?

Fixed in 2.1.0