ThePhalcons / AmazonWebServicesBundle

A Symfony 2 Bundle for interfacing with Amazon Web Services (AWS) using latest aws-sdk-php
112 stars 43 forks source link

Upgrade to Symfony 3.4 Service not allowed #61

Open YuManZz opened 6 years ago

YuManZz commented 6 years ago

Hello, I try to upgrade my symfony project 2.8 to 3.4 and I got this error :

`In XmlFileLoader.php line 386:

Unable to parse file "E:\wamp\www\my-project.com\vendor\thephalcons\amazon-webservices-bundle\AmazonWebServicesBundle\DependencyInjection/../Resources/config\aws_config.xml".

In XmlUtils.php line 101:

[ERROR 1866] Element '{http://symfony.com/schema/dic/services}service', attribute 'factory-service': The attribute 'factory-service' is not allowed. (in file:/E:/wamp/www/my-project.com/ - line 35, column 0)
[ERROR 1866] Element '{http://symfony.com/schema/dic/services}service', attribute 'factory-method': The attribute 'factory-method' is not allowed. (in file:/E:/wamp/www/my-project.com/ - line 35, column 0)

`

Any issue ? Thanks

PawnKaiser commented 6 years ago

Hi, indeed, with symfony +3.3 the attribute factory-method and factory-service are no more allowed as a workaround you can change the config file as below

`

    </service>

` it should be fixed in the next release thanks for the report