PUGX / PUGXMultiUserBundle

An extension for FOSUserBundle to handle users of different types. Compatible with Doctrine ORM.
163 stars 96 forks source link

Non-compatibility with latest FOSUserBundle v2.0.0 alpha3 #137

Closed vishalraj82 closed 7 years ago

vishalraj82 commented 7 years ago

Latest release of https://github.com/FriendsOfSymfony/FOSUserBundle/releases breaks the build. Stack trace below.

  [RuntimeException]                                                                                                                                                                                                                         
  An error occurred when executing the "'cache:clear --no-warmup'" command:                                                                                                                                                                  
  PHP 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\PasswordUpdaterInterfa  
  ce, instance of Symfony\Component\Security\Core\Encoder\EncoderFactory given, called in .../vendor/pugx/multi-user-bundle/PUGX/MultiUserBundle/Doctrine/UserManager.php on line 47 in .../vendor/friendsofsymfony/user-bundle/Doctrine/UserManager.php:46                                                                                                                                                           
  Stack trace:                                                                                                                                                                                                                               
  #0 .../vendor/pugx/multi-user-bundle/PUGX/MultiUserBundle/Doctrine/UserManager.php(47): FOS\UserBundle\Doctrine\UserManager->__construct(Object(Symfony\Component\Security\Core\Encoder\EncoderFactory),   
  Object(FOS\UserBundle\Util\Canonicalizer), Object(FOS\UserBundle\Util\Canonicalizer), Object(Doctrine\ORM\EntityManager), 'AppBundle\\Entit...')                                                                                           
  #1 .../var/cache/dev/appDevDebugProjectContainer.php(2533): PUGX\MultiUs in .../vendor/friendsofsymfony/user-bundle/Doctrine/UserManager.php on line 46 
garak commented 7 years ago

See #124

vishalraj82 commented 7 years ago

@garak I just fixed the issue locally. Attached are the updated files.

update.zip