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

[Bug] SearchController tries to obtain services from container that do not exist #2438

Closed
hethehe opened this issue Nov 7, 2023 · 1 comment

Comments

@hethehe
Copy link
Contributor

hethehe commented Nov 7, 2023

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no

If you search there is an error:
Service "CoreShop\Component\Store\Context\StoreContextInterface" not found: even though it exists in the app's container, the container inside "CoreShop\Bundle\FrontendBundle\Controller\SearchController" is a smaller service locator that only knows about the ...
... Try using dependency injection instead.

How would you like to handle this? Should I create a PR that uses dependency injection for these services?

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