我使用此文档 https://github.com/PUGX/PUGXMultiUserBundle/blob/master/Resources/doc/index.md 安装了PUGXMultiUserBundle 我有两个问题: 首先,我不知道应该把用户管理器放在哪里
$discriminator = $this->container->get('pugx_user.manager.user_discriminator');
$discriminator->setClass('Acme\UserBundle\Entity\UserOne');
$userManager = $this->container->get('pugx_user_manager');
$userOne = $userManager->createUser();
$userOne->setUsername('admin');
$userOne->setEmail('admin@mail.com');
$userOne->setPlainPassword('123456');
$userOne->setEnabled(true);
$userManager->updateUser($userOne, true);
和其他事情,当我尝试运行注册页面时,我有这个错误:
UserDiscriminator, error getting form type : "MyApp\UserBundle\Form\Type\RegistrationUserOneFormType" not found
谢谢你的帮助