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

Upgrade to Symfony 3.4 Service not allowed #61

Open
YuManZz opened this issue Jan 21, 2018 · 1 comment
Open

Upgrade to Symfony 3.4 Service not allowed #61

YuManZz opened this issue Jan 21, 2018 · 1 comment

Comments

@YuManZz
Copy link

YuManZz commented Jan 21, 2018

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
Copy link
Member

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 id="aws_service"> <factory class="%aws_factory.class%" method="get" /> </service>
it should be fixed in the next release
thanks for the report

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

2 participants