mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Refactor && Typo && Use plain objects as function parameters instead of ids
This commit is contained in:
@@ -40,7 +40,7 @@ class ManipulatorServiceProvider implements ServiceProviderInterface
|
||||
});
|
||||
|
||||
$app['manipulator.registration'] = $app->share(function ($app) {
|
||||
return new RegistrationManipulator($app['EM'], $app['phraseanet.appbox'], $app['acl']);
|
||||
return new RegistrationManipulator($app, $app['EM'], $app['acl'], $app['phraseanet.appbox']);
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -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