Skip to content

Commit e49e8f6

Browse files
authored
Merge pull request #58 from haase-fabian/master
TASK: replace whitelistObject() with new allowObject()
2 parents 282f2e3 + b52d66e commit e49e8f6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Diff for: Classes/Controller/RegistrationController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function activateAccountAction($token)
133133

134134
$user = $this->userCreationService->createUserAndAccount($registrationFlow);
135135
$this->registrationFlowRepository->remove($registrationFlow);
136-
$this->persistenceManager->whitelistObject($registrationFlow);
136+
$this->persistenceManager->allowObject($registrationFlow);
137137

138138
$this->view->assign('success', true);
139139
$this->view->assign('user', $user);

Diff for: Classes/Domain/Service/Flow/FlowUserCreationService.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public function createUserAndAccount(RegistrationFlow $registrationFlow)
7171

7272
// Persist user
7373
$this->userRepository->add($user);
74-
$this->persistenceManager->whitelistObject($user);
75-
$this->persistenceManager->whitelistObject($account);
74+
$this->persistenceManager->allowObject($user);
75+
$this->persistenceManager->allowObject($account);
7676

7777
// Return the user so the controller can directly use it
7878
return $user;

Diff for: Classes/Domain/Service/Neos/NeosUserCreationService.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ public function createUserAndAccount(RegistrationFlow $registrationFlow)
7575
$this->getPartyService()->assignAccountToParty($account, $user);
7676
$this->getPartyRepository()->add($user);
7777
$this->accountRepository->add($account);
78-
$this->persistenceManager->whitelistObject($user);
79-
$this->persistenceManager->whitelistObject($user->getPreferences());
80-
$this->persistenceManager->whitelistObject($name);
81-
$this->persistenceManager->whitelistObject($account);
78+
$this->persistenceManager->allowObject($user);
79+
$this->persistenceManager->allowObject($user->getPreferences());
80+
$this->persistenceManager->allowObject($name);
81+
$this->persistenceManager->allowObject($account);
8282

8383
// Return the user so the controller can directly use it
8484
return $user;

0 commit comments

Comments
 (0)