mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Refactor && Typo && Use plain objects as function parameters instead of ids
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
namespace Alchemy\Phrasea\Core\Provider;
|
||||
|
||||
use Alchemy\Phrasea\Form\Constraint\NewLogin;
|
||||
use Alchemy\Phrasea\Model\Manipulator\RegistrationManipulator;
|
||||
use Alchemy\Phrasea\Model\Entities\User;
|
||||
use Alchemy\Phrasea\Core\Configuration\RegistrationManager;
|
||||
use Silex\Application;
|
||||
use Silex\ServiceProviderInterface;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
@@ -27,7 +27,7 @@ class RegistrationServiceProvider implements ServiceProviderInterface
|
||||
});
|
||||
|
||||
$app['registration.manager'] = $app->share(function (Application $app) {
|
||||
return new RegistrationManager($app['phraseanet.appbox']);
|
||||
return new RegistrationManager($app['phraseanet.appbox'], $app['manipulator.registration']->getRepository(), $app['locale']);
|
||||
});
|
||||
|
||||
$app['registration.optional-fields'] = $app->share(function (Application $app) {
|
||||
|
Reference in New Issue
Block a user