private function renderPublicKeyHtml() { $statusContainer = $this->backupService->createStatusInformation(); $parameters = array('statusContainer' => $statusContainer, 'publicKey' => $this->configService->getPublicKey()); return $this->renderHtml('publickey.inc', $parameters); }
private function createParameters($subTemplate) { $parameters = array('statusContainer' => $this->getStatusContainer(), 'userName' => $this->configService->getHostUserName(), 'keyUploadUrl' => $this->urlGenerator->linkToRoute('easybackup.config.uploadSshKey'), 'schedule' => $this->scheduleService, 'scheduleTime' => $this->configService->getScheduleTime(), 'isScheduled' => $this->configService->isBackupScheduled(), 'configurationUrl' => $this->urlGenerator->linkToRoute('easybackup.page.configuration'), 'backupUrl' => $this->urlGenerator->linkToRoute('easybackup.page.backup'), 'restoreUrl' => $this->urlGenerator->linkToRoute('easybackup.page.restore'), 'logfileUrl' => $this->urlGenerator->linkToRoute('easybackup.logfileview.getCompleteLogfile'), 'subTemplate' => $subTemplate, 'publicKey' => $this->configService->getPublicKey(), 'isExecuting' => $this->backupService->isExecutingOrWaitingForRun(), 'lastBackupSuccessful' => $this->backupService->isLastBackupSuccessful(), 'lastBackupTime' => $this->backupService->getLastBackupTime()); return $parameters; }