Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8657125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:26:41+00:00 2026-06-12T15:26:41+00:00

I am trying to combine Symfony2, KnpGaufetteBundle & Amazon S3. From the KnpGaufette Bundle

  • 0

I am trying to combine Symfony2, KnpGaufetteBundle & Amazon S3.
From the KnpGaufette Bundle i got an xml definition to use for my config. But it’s in xml and my config is in yml. And somehow i can’t get my head around it. How do i define the following variables in yml? And what do they mean?

<service id="acme.s3" class="AmazonS3">
    <argument type="collection">
        <argument key="key">%acme.aws_key%</argument>
        <argument key="secret">%acme.aws_secret_key%</argument>
    </argument>
</service>

<service id="acme.s3.adapter" class="Gaufrette\Adapter\AmazonS3">
    <argument type="service" id="acme.s3"></argument>
    <argument>%acme.s3.bucket_name%</argument>
</service>

<service id="acme.fs" class="Gaufrette\Filesystem">
    <argument type="service" id="acme.s3.adapter"></argument>
</service>

Update with full Solution

So, to actually get it working, not only do we have to put down the config in yml (which has been solved by chmeliuk -> thanks), but we also need to configure the cacert.pem file for curl.
You can get a proper one here: http://curl.haxx.se/ca/cacert.pem

Now put this wherever you want and then use the following lines with the additional certificate_authority entry:

services:
    acme.s3:
        class: AmazonS3
        arguments:
            options: { key: %acme.aws_key%, secret: %acme.aws_secret_key%, certificate_authority: "pathWhereYouDidPutThisFile/cacert.pem" }

    acme.s3.adapter:
        class: Gaufrette\Adapter\AmazonS3
        arguments: 
            service: @acme.s3
            bucket_name: %acme.s3.bucket_name%

    acme.fs:
        class: Gaufrette\Filesystem
        arguments: 
            adapter: @acme.s3.adapter

This solves the CA Cert cURL Error 60 which you might have otherwise.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:26:43+00:00Added an answer on June 12, 2026 at 3:26 pm

    same configuration but in yml format.

    services:
        acme.s3:
            class: AmazonS3
            arguments:
                options: { key: %acme.aws_key%, secret: %acme.aws_secret_key% }
    
        acme.s3.adapter:
            class: Gaufrette\Adapter\AmazonS3
            arguments: 
                service: @acme.s3
                bucket_name: %acme.s3.bucket_name%
    
        acme.fs:
            class: Gaufrette\Filesystem
            arguments: 
                adapter: @acme.s3.adapter
    

    to define such parameters as: %acme.aws_key%, %acme.aws_secret_key%, %acme.s3.bucket_name% add to your project parameters.yml file (or to same config where you define services) next lines:

    parameters:
        acme.aws_key: YOUR_AWS_KEY
        acme.aws_secret_key: YOUR_AWS_SECRET_KEY
        acme.s3.bucket_name: cool_bucket_name
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to combine a static hard coded string with one referenced from strings.xml
I'm trying to combine two or more xml files for better use. Let's say
I am trying to combine values from several UI controls in order to select
I'm working with Android in Eclipse and was trying to combine code from a
Im trying to combine an image I create from a blob I pull from
I am basically trying to combine code from two examples given in the DataTables
i am trying to combine two arrays with their relations but cant do exatly.
I am trying to combine to queries with union all: use SalesDWH go select
I'm trying to combine code on two branches with the 'git merge' command, but
I am trying to combine some info from our Active directory - computer names,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.