| @@ 127-131 (lines=5) @@ | ||
| 124 | $mailAccounts = $this->accountService->findByUserId($this->currentUserId); |
|
| 125 | ||
| 126 | $json = []; |
|
| 127 | foreach ($mailAccounts as $mailAccount) { |
|
| 128 | $conf = $mailAccount->getConfiguration(); |
|
| 129 | $conf['aliases'] = $this->aliasesService->findAll($conf['accountId'], $this->currentUserId); |
|
| 130 | $json[] = $conf; |
|
| 131 | } |
|
| 132 | return new JSONResponse($json); |
|
| 133 | } |
|
| 134 | ||
| @@ 84-89 (lines=6) @@ | ||
| 81 | $mailAccounts = $this->accountService->findByUserId($this->currentUserId); |
|
| 82 | ||
| 83 | $accountsJson = []; |
|
| 84 | foreach ($mailAccounts as $mailAccount) { |
|
| 85 | $conf = $mailAccount->getConfiguration(); |
|
| 86 | $conf['aliases'] = $this->aliasesService->findAll($conf['accountId'], |
|
| 87 | $this->currentUserId); |
|
| 88 | $accountsJson[] = $conf; |
|
| 89 | } |
|
| 90 | ||
| 91 | $response = new TemplateResponse($this->appName, 'index', [ |
|
| 92 | 'debug' => $this->config->getSystemValue('debug', false), |
|