Revamped the organisation approvals process & refactored some files
This commit is contained in:
@@ -156,7 +156,7 @@ class ServicesProvider
|
||||
*/
|
||||
$container['organisation.beforeDelete'] = function ($c) {
|
||||
/*
|
||||
* This method is invoked when an organisation is about to be merged
|
||||
* This method is invoked when an organisation is about to be deleted
|
||||
*
|
||||
* Returns a callback that handles re-owning any organisation objects.
|
||||
* Throwing exceptions is allowed but not recommended. This method is triggered within a Capsule context.
|
||||
@@ -168,7 +168,7 @@ class ServicesProvider
|
||||
};
|
||||
|
||||
/*
|
||||
* Repository for approval requests.
|
||||
* Repository for organisation registration approval requests.
|
||||
*
|
||||
* @return \UserFrosting\Sprinkle\Organisations\Repository\OrganisationApprovalRepository
|
||||
*/
|
||||
@@ -176,7 +176,7 @@ class ServicesProvider
|
||||
$classMapper = $c->classMapper;
|
||||
$config = $c->config;
|
||||
|
||||
$repo = new OrganisationApprovalRepository($classMapper, $config['verification.algorithm']);
|
||||
$repo = new OrganisationApprovalRepository($classMapper, $config['verification.algorithm'], $c['tokenLogger'], $config['debug.tokens']);
|
||||
|
||||
return $repo;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user