-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Symfony requires that you provide a value for the $passwordEncoder argument #23033
Comments
This looks like a documentation issue. This article has been updated in 3.3 and now assumes that your controller is tagged as The standalone controller service configuration is missing, maybe assuming that you started your project using the new SE default configuration which makes use of the new automatic configuration related features. The problem is that you might very well not use all of them, I don't use this one myself and I think we should not assume they are used naturally all over the doc because we provided it as default. ping @weaverryan |
For fixing your use case, register your controller as a service with the good tag, e.g: AppBundle\Controller\RegistrationController:
autowire: true # or define your controller constructor and configure its arguments explicitly
tags: ['controller.service_arguments'] |
@chalasr Is right here. The documentation for 3.3 assumes that you have this config in your application. As this may not be the case when you just upgraded an existing application from 3.2 to 3.3 we may possibly improve the DX here a bit. I opened symfony/symfony-docs#7988 to keep track of it. |
public function newAction(Request $request)
|
I have a similar problem but a rest method from controller. $obj = new Class(); |
Use Namespace : |
try copying my code: `<?php namespace App\Controller; use App\Entity\User; class RegistrationController extends AbstractController
}` |
I'm following this article for simple registration form but getting this error when accessing the URL: http://localhost/symfony-app/web/app_dev.php/en/register
How can I fix this?
The text was updated successfully, but these errors were encountered: