Symfony FOSUserBundle versions:
v2.1.0
Symfony v3.4.4
Description of the problem including expected versus actual behavior:
Type error: Too few arguments to function FOS\UserBundle\Controller\RegistrationController::__construct(), 0 passed in /home/adam/www/lug-main/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php on line 195 and exactly 4 expected
Steps to reproduce:
- Updating friendsofsymfony/user-bundle (v2.0.2 => v2.1.0): Downloading (100%)/**
* @Route("/registration")
*/
class RegistrationController extends \FOS\UserBundle\Controller\RegistrationController
{
}
ok, my fault
Have you resolve this issue please, I've got the same problem? can you help me 馃憤
Type error: Too few arguments to function FOS\UserBundle\Controller\RegistrationController::__construct(), 0 passed in /Applications/MAMP/htdocs/startup/nekrinet/var/cache/dev/Container9m07ghj/getPugxMultiUser_RegistrationManagerService.php on line 14 and exactly 4 expected
RegistrationController:
/**
* @Route("/registration")
*/
class RegistrationController extends \Symfony\Bundle\FrameworkBundle\Controller\Controller
{
For anyone wandering in here from Google, I worked around this error with Symfony 4.2 and FOSUserBundle 2.1.2 by changing my template rendering from:
{{ render(controller('FOSUserBundle:Registration:register')) }}
To this:
{{ render(url('fos_user_registration_register')) }}
Cheers.
Most helpful comment
RegistrationController: