Category: autowired

Symfony 3.4 : Cannot autowire service : argument of method "__construct()" has no type-hint, you should configure its value explicitly

I’m trying to define service using Symfony 3.4 DI but I got the following error : Cannot autowire service “AppBundleServiceSelectionWeb”: argument “$config” of method “__construct()” has no type-hint, you should configure its value explicitly. ..But I did configure its value….

How to provide parameters to service registered outside services.yaml

I am having an issue with Symfony autowiring. I need to replace one of third party services with my own. The service is originally defined like this: ewz_recaptcha.form.type: class: EWZBundleRecaptchaBundleFormTypeEWZRecaptchaType public: true arguments: – ‘%ewz_recaptcha.public_key%’ – ‘%ewz_recaptcha.enabled%’ – ‘%ewz_recaptcha.ajax%’ -…