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.
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