* [ADD] syspass.log file and configuration backup can now be downloaded from Information tab

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-11-01 11:35:14 +01:00
parent ec97b603b0
commit e1f2f0b0f0
9 changed files with 187 additions and 28 deletions

View File

@@ -160,7 +160,7 @@ final class ConfigBackupController extends SimpleControllerBase
$this->eventDispatcher->notifyEvent('download.exportFile',
new Event($this, EventMessage::factory()
->addDescription(__u('Archivo descargado'))
->addDetail(__u('Archivo'), $file->getFile()))
->addDetail(__u('Archivo'), str_replace(APP_ROOT, '', $file->getFile())))
);
$response = $this->router->response();
@@ -202,7 +202,7 @@ final class ConfigBackupController extends SimpleControllerBase
$this->eventDispatcher->notifyEvent('download.backupAppFile',
new Event($this, EventMessage::factory()
->addDescription(__u('Archivo descargado'))
->addDetail(__u('Archivo'), $file->getFile()))
->addDetail(__u('Archivo'), str_replace(APP_ROOT, '', $file->getFile())))
);
$response = $this->router->response();
@@ -244,7 +244,7 @@ final class ConfigBackupController extends SimpleControllerBase
$this->eventDispatcher->notifyEvent('download.backupDbFile',
new Event($this, EventMessage::factory()
->addDescription(__u('Archivo descargado'))
->addDetail(__u('Archivo'), $file->getFile()))
->addDetail(__u('Archivo'), str_replace(APP_ROOT, '', $file->getFile())))
);
$response = $this->router->response();