Sorry if my english in't very good. I'm learning it.
I have followed all the steps of the instalation guide of PUGXMultiUserBundle. The only thing i haven`t done is to create the forms for my entities. I'm confused about it.
When I go to the register page for my user-one, it says this to me:
Catchable Fatal Error: Argument 1 passed to FOS\UserBundle\Doctrine\UserManager::__construct() must implement interface Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface, instance of FOS\UserBundle\Util\PasswordUpdater given, called in C:\xampp\htdocs\myproject\vendor\pugx\multi-user-bundle\Doctrine\UserManager.php on line 44 and defined
Code of PUGXMultiUserBundle's User Manager:
// vendor\pugx\multi-user-bundle\Doctrine\UserManager.php (function __construct)
public function __construct(PasswordUpdaterInterface $passwordUpdater, CanonicalFieldsUpdater $canonicalFieldsUpdater, ObjectManager $om, $class, UserDiscriminator $userDiscriminator)
{
$this->om = $om;
$this->userDiscriminator = $userDiscriminator;
parent::__construct($passwordUpdater, $canonicalFieldsUpdater, $om, $class);
}
Code of FOSUserBundle's User Manager:
// vendor\friendsofsymfony\user-bundle\Doctrine\UserManager.php (function __construct)
public function __construct(EncoderFactoryInterface $encoderFactory, CanonicalizerInterface $usernameCanonicalizer, CanonicalizerInterface $emailCanonicalizer, ObjectManager $om, $class)
{
parent::__construct($encoderFactory, $usernameCanonicalizer, $emailCanonicalizer);
$this->objectManager = $om;
$this->repository = $om->getRepository($class);
$metadata = $om->getClassMetadata($class);
$this->class = $metadata->getName();
}