Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

[ticket/11497] Set ext.finder to use scope: prototype #1996

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
Member

bantu commented Feb 3, 2014

Tests fail with a Symfony\Component\DependencyInjection\Exception\ScopeCrossingInjectionException

Contributor

EXreaction commented Feb 3, 2014

Symfony\Component\DependencyInjection\Exception\ScopeCrossingInjectionException: Scope Crossing Injection detected: The definition "kernel_request_subscriber" references the service "ext.finder" which belongs to another scope hierarchy. This service might not be available consistently. Generally, it is safer to either move the definition "kernel_request_subscriber" to scope "prototype", or declare "container" as a child scope of "prototype". If you can be sure that the other scope is always active, you can set the reference to strict=false to get rid of this error.

So shall we just set strict=false then? I would have expected this issue with notifications or anywhere else we use prototype getting this error here...

Contributor

nickvergessen commented Mar 5, 2014

@naderman mister composer, can you help here?

@EXreaction EXreaction closed this Mar 11, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment