@@ 90-96 (lines=7) @@ | ||
87 | return $user; |
|
88 | }); |
|
89 | ||
90 | $transaction->error(static function (ErrorContextInterface $context) use ($passwordRequest) { |
|
91 | $e = $context->getError(); |
|
92 | ||
93 | if (!$e instanceof PasswordRequestProcessException) { |
|
94 | throw new PasswordRequestProcessException($passwordRequest->getUser()->getId(), $passwordRequest->getId(), $e->getMessage(), 0, $e); |
|
95 | } |
|
96 | }); |
|
97 | ||
98 | $transaction->withArguments([ |
|
99 | 'passwordRequest' => $passwordRequest, |
|
@@ 120-126 (lines=7) @@ | ||
117 | return $passwordRequest; |
|
118 | }); |
|
119 | ||
120 | $transaction->error(static function (ErrorContextInterface $context) use ($passwordRequest) { |
|
121 | $e = $context->getError(); |
|
122 | ||
123 | if (!$e instanceof PasswordRequestProcessException) { |
|
124 | throw new PasswordRequestProcessException($passwordRequest->getUser()->getId(), $passwordRequest->getId(), $e->getMessage(), 0, $e); |
|
125 | } |
|
126 | }); |
|
127 | ||
128 | $transaction->withArguments(['passwordRequest' => $passwordRequest])->run(); |
|
129 | } |