You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: