Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony3 Factory Configuration #54

Open
cjgordon opened this issue Apr 5, 2016 · 0 comments
Open

Symfony3 Factory Configuration #54

cjgordon opened this issue Apr 5, 2016 · 0 comments

Comments

@cjgordon
Copy link

cjgordon commented Apr 5, 2016

Hi,

I was receiving:

The attribute 'factory-service' is not allowed.

From:
aws_config.yml
aws_service.yml

This relates to changes in version 2.7 that are now deprecated in Symfony3.

To fix:

    <service id="aws_service" class="AwsService" factory-service="aws_factory" factory-method="get" abstract="true">
        <argument type="service" id="aws"/>
    </service>

Needs to be changed to:

 <service id="aws_service" class="AwsService" abstract="true">
        <factory service="aws_factory" method="get"/>
        <argument type="service" id="aws"/>
  </service>

I was going to fork and PR but I think this might cause some BC breaks of Symfony <2.7.

Cheers
Chris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant