PUGX / PUGXMultiUserBundle

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

assetic:dump crashes with pugXMultiUserBundle #125

Closed Organicdareal closed 7 years ago

Organicdareal commented 7 years ago

I was ok on my dev server, and i tried to deploy with capifony, as usual. It crashes every time on assetic:dump command, with this log :

[Symfony\Component\Debug\Exception\ContextErrorException] Catchable Fatal 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 /var/www/MIP/vendor/pugx/multi-user-bundle/PUGX/MultiUserBundle/Doctrine/UserManager.php on line 47 and define d

Then i tried to assetic:dump on my dev server, and now i'm unable to do anything, cache:clear crashes with the same log error.

I didn't touch anything related to the bundle, so what happened ? Did the bundle updated and is no longer compatible ? I work with Symfony 2.7

Thanks

garak commented 7 years ago

See #124

Organicdareal commented 7 years ago

Hi, thanks for your answer, it seems like the way to go. I tried to force "friendsofsymfony/user-bundle" : "2.0.0", "pugx/multi-user-bundle": "3.0.*@dev",

in my composer.json, but i still got the error. What am i doing wrong ?

`./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json to its original content. `

garak commented 7 years ago

There is no stable 2.0 release for FOSUserBundle now. You can stick to v2.0.0-alpha3 (for FOS, not for this bundle) I'm closing this.

Organicdareal commented 7 years ago

That's what i get when i use alpha3 version :

` [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException] The service "pugx_user.manager.orm_user_manager" has a dependency on a non-existent service "fos_user.object_manager".

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception

[RuntimeException] An error occurred when executing the "'cache:clear --no-warmup'" command:

[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]

The service "pugx_user.manager.orm_user_manager" has a dependency on a non-existent service "fos_user.object_manager".`

Sorry to bother you...

garak commented 7 years ago

See #98

Organicdareal commented 7 years ago

Thanks for your help