Answer the question
In order to leave comments, you need to log in
Why doesn't the service work in Symfony 4.2?
Wrote a simple service for uploading files strictly according to this documentation https://symfony.com/doc/master/controller/upload_f... . However, Symfony throws an error
Cannot autowire service "App\Service\FileUploader": argument "$directory" of method "__construct()" has no type-hint, you should configure its value explicitly.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question