"vich/uploader-bundle": "^1.4.2" and "knplabs/knp-gaufrette-bundle": "0.5"塞弗尼3
我的配置:
vich_uploader:
db_driver: orm
storage: gaufrette
mappings:
customer_logo:
uri_prefix: /upload/customer_logos
upload_destination: customer_logo_fs
namer: ~
directory_namer: vich_uploader.directory_namer_subdir
inject_on_load: false
delete_on_update: true
delete_on_remove: true
knp_gaufrette:
stream_wrapper: ~
adapters:
user_photo:
local:
directory: '%kernel.project_dir%/var/uploads/user/photos'
create: true
filesystems:
customer_logo_fs:
adapter: customer_logo_adapter错误
Symfony\Component\DependencyInjection\Exception\AutowiringFailedException
无法自动更新服务“AppBundle\Twig\Base64Extenation”:参数"$storag“
方法"__construct()“的e”引用接口"Vich\UploaderBundle\Stor
年龄\存储接口“但不存在这样的服务。
是与以下现有服务之一的接口:"vich_uploader.storage.file
_system,vich_uploader.storage.gaufrette。
发布于 2018-05-22 11:45:32
AppBundle\Twig\Base64Extension:
arguments: ['@vich_uploader.storage.gaufrette']
public: true
https://stackoverflow.com/questions/50415465
复制相似问题