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

Symfony 3.4 setScope Call to undefined method #311

Open
wuestkamp opened this issue Sep 17, 2018 · 2 comments
Open

Symfony 3.4 setScope Call to undefined method #311

wuestkamp opened this issue Sep 17, 2018 · 2 comments

Comments

@wuestkamp
Copy link

Hi there,

uprading a project from 2.8 to 3.4, getting this error for "jms/di-extra-bundle": "1.9.*"

PHP Fatal error:  Call to undefined method Symfony\Component\DependencyInjection\Definition::setScope() in /Users/user/project/vendor/jms/di-extra-bundle/Metadata/MetadataConverter.php on line 85

Replacing setScope with setShared in that line solves the error? a la UPGRADE-3.0.md

Any idea?
Kim

@wuestkamp
Copy link
Author

wuestkamp commented Sep 28, 2018

To solve this we forked (https://github.com/tdmedia/JMSDiExtraBundle) created a branch based on tag 1.9.2 (branch name setScope-fix), and replaced setScope with setShared in file MetadataConverter.php, then adjusted our composer.json like this:

    "repositories": [
        { "type": "vcs", "url": "https://github.com/tdmedia/JMSDiExtraBundle" }
    ],
    "require": {
       ...
        "jms/di-extra-bundle": "dev-setScope-fix as 1.9.2",
...

Any suggestions still welcome :)

@wuestkamp
Copy link
Author

Anyone got a suggestion on how to proceed with this?

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