KnpLabs / KnpGaufretteBundle

Easily use Gaufrette in your Symfony projects.
http://knplabs.com
MIT License
717 stars 158 forks source link

Adapter is not defined #213

Closed konradja100 closed 5 years ago

konradja100 commented 5 years ago

Hi, we're using this bundle with SF 2.4.5, for for S3 storage. We have one filesystem called invoice with only one adapter - also called invoice. For local enviroment we use local storage with this configuration:

knp_gaufrette:
    adapters:
        invoice:
            local:
                directory: '%env(GAUFRETTE_LOCAL_DIRECTORY)%'

And for production:

knp_gaufrette:
    adapters:
        invoice:
            aws_s3:
                service_id: 'invoice.aws_s3.client'
                bucket_name: '%env(GAUFRETTE_AMAZONS3_BUCKET)%'
                detect_content_type: true
                options:
                    directory: '%env(GAUFRETTE_AMAZONS3_DIRECTORY)%'

So the issue appears today, as we call command not even related to this budle - we just wanna send some email reports.

Error: image

Week ago everything was working fine, no deployments since that day, no other errors, no data corruption, event cache was not cleared. Has anyone struggled with such situation?

nicolasmure commented 5 years ago

Hello,

Sorry for the late answer, what are your bundle and gaufrette versions ?

Did you make any progress on this since the time you posted the issue ?

konradja100 commented 5 years ago

Yes i've deployed my app several times and this is no longer an issue. Maybe it needs just to refresh cache.

nicolasmure commented 5 years ago

I'm closing the issue then, thanks for the feedback.