agence-adeliom / easy-media-bundle

A Symfony Media manager bundle for EasyAdmin
MIT License
26 stars 13 forks source link

Adeliom\EasyMediaBundle\Service\EasyMediaManager::__construct(): Argument #1 ($filesystem) must be of type League\Flysystem\FilesystemOperator, League\Flysystem\Local\LocalFilesystemAdapter given, called in /var/www/html/francois-rouan/var/cache/dev/ContainerKp7v7sX/getEasyMedia_ManagerService.php on line 34 #33

Open ak85ie1d5 opened 7 months ago

ak85ie1d5 commented 7 months ago

After installation of this package, I have the following error during symfony cache:clear and anywhere in front

Adeliom\EasyMediaBundle\Service\EasyMediaManager::__construct(): Argument #1 ($filesystem) must be of type League\Flysystem\FilesystemOperator, League\Flysystem\Local\LocalFilesystemAdapter given, called in /var/www/html/francois-rouan/var/cache/dev/ContainerKp7v7sX/getEasyMedia_ManagerService.php on line 34

My config is : PHP 8.2 Apache2 Symfony 6.4 LTS

mervit commented 7 months ago

I dont know if this is right solution, but i commented "storage_name"configuration in "easy_media" section and iam using default flysystem configuration and errr disapears.

config/packages/easy_media.yaml

easy_media:
#  storage_name: flysystem.adapter.medias.storage
ak85ie1d5 commented 7 months ago

It works! Thank you very much