Skip to content

You have requested a synthetic service ("request"). The DIC does not know how to construct this service. #19857

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

Closed
SahnounM91 opened this issue Sep 5, 2016 · 3 comments

Comments

@SahnounM91
Copy link

when I've install the phpexcel and update the composer this error is occurred, I tried to clear the cache but the error appeared again.

@SahnounM91 SahnounM91 changed the title array(1) { [0]=> array(3) { ["file"]=> string(133) "/var/www/html/devagnos_project/ta-plateform/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php" ["line"]=> int(40) ["function"]=> string(7) "require" } } You have requested a synthetic service ("request"). The DIC does not know how to construct this service. You have requested a synthetic service ("request"). The DIC does not know how to construct this service. Sep 5, 2016
@hhamon
Copy link
Contributor

hhamon commented Sep 5, 2016

Same error for me.

@alexislefebvre
Copy link
Contributor

alexislefebvre commented Sep 5, 2016

It looks like it's a duplicate of #19840.

@jakzal
Copy link
Contributor

jakzal commented Sep 5, 2016

Closing as a duplicate.

@jakzal jakzal closed this as completed Sep 5, 2016
nicolas-grekas added a commit that referenced this issue Sep 6, 2016
…" (nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

Revert "minor #19689 [DI] Cleanup array_key_exists (ro0NL)"

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| Tests pass?   | yes
| Fixed tickets | #19689 #19840 #19825 #19857
| License       | MIT
| Doc PR        | -

This reverts commit c89f80a, reversing
changes made to 386e5e7.

See discussion in #19847

I'll try adding test cases soon that ensure that:

- [x] *when not leaving scope* synthetic services always throw and ignore the `ContainerInterface::NULL_ON_INVALID_REFERENCE` flag (on 3.x also)
- [x] *when leaving scope* synthetic services always return null and ignore the `ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE`  (until 2.8 since scopes are gone in 3.x)

Commits
-------

8cb28bf [DI] Add anti-regression test
ac742df Revert "minor #19689 [DI] Cleanup array_key_exists (ro0NL)"
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

4 participants