Skip to content

Symfony3 Factory Configuration #54

@cjgordon

Description

@cjgordon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions