@@ 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 |
@@ 89-94 (lines=6) @@ | ||
86 | $mailAccounts = $this->accountService->findByUserId($this->currentUserId); |
|
87 | ||
88 | $accountsJson = []; |
|
89 | foreach ($mailAccounts as $mailAccount) { |
|
90 | $conf = $mailAccount->getConfiguration(); |
|
91 | $conf['aliases'] = $this->aliasesService->findAll($conf['accountId'], $this->currentUserId); |
|
92 | $accountsJson[] = $conf; |
|
93 | } |
|
94 | ||
95 | $user = $this->userSession->getUser(); |
|
96 | $response = new TemplateResponse($this->appName, 'index', [ |
|
97 | 'debug' => $this->config->getSystemValue('debug', false), |