FOSUser + PUGX:UserManager.php中的致命类型错误

时间:2016-10-21 13:33:08

标签: symfony fosuserbundle pugxmultiuserbundle

更新作曲家后,我开始收到此错误

Type error: Argument 1 passed to FOS\UserBundle\Doctrine\UserManager::__construct() must implement interface FOS\UserBundle\Util\PasswordUpdaterInterface, instance of Symfony\Component\Security\Core\Encoder\EncoderFactory given

在composer.json中的

我有以下的包:

"require":{
    "friendsofsymfony/user-bundle": "~2.0@dev",
    "pugx/multi-user-bundle": "3.0.*@dev",
}

完整错误: Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to FOS\UserBundle\Doctrine\UserManager::__construct() must implement interface FOS\UserBundle\Util\PasswordUpdaterInterface, instance of Symfony\Component\Security\Core\Encoder\EncoderFactory given, called in /Users/juliezhanazar/PhpstormProjects/cofico-backend/vendor/pugx/multi-user-bundle/PUGX/MultiUserBundle/Doctrine/UserManager.php on line 47 in /Users/juliezhanazar/PhpstormProjects/cofico-backend/vendor/friendsofsymfony/user-bundle/Doctrine/UserManager.php:46

1 个答案:

答案 0 :(得分:1)

尝试更改

"friendsofsymfony/user-bundle": "dev-master#49e3117888f8ed79a10afe5f0cb7a404c13b616c"