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

ScopeWideningInjectionException when configuring spam detection #15

Open
lightdiff opened this issue Sep 1, 2012 · 0 comments
Open

Comments

@lightdiff
Copy link

Hi, I'm trying to configure spam detection with OrnicarAkismetBundle according to the ContactBundle documentation, but I receive the following error:

ScopeWideningInjectionException: Scope Widening Injection detected: The definition "ihqs_contact.connectors.database.event_listener" references the service "ornicar_akismet.akismet_real" which belongs to a narrower scope. Generally, it is safer to either move "ihqs_contact.connectors.database.event_listener" to scope "request" or alternatively rely on the provider pattern by injecting the container itself, and requesting the service "ornicar_akismet.akismet_real" each time it is needed. In rare, special cases however that might not be necessary, then you can set the reference to strict=false to get rid of this error.

I'm using Symfony 2.0.17 and OrnicarAkismetBundle master.

I've searched for solutions, but could do with some pointers/advice on resolving this issue.

Thanks

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