mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
chore: Refactor EventDispatcher and observer pattern
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -53,7 +53,7 @@ final class CreateController extends AccountBase
|
||||
|
||||
$accountDetails = $this->accountService->getByIdEnriched($accountId)->getAccountVData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'create.account',
|
||||
new Event(
|
||||
$this,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -50,7 +50,7 @@ final class DeleteController extends AccountBase
|
||||
|
||||
$this->accountService->delete($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.account',
|
||||
new Event(
|
||||
$this,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -50,7 +50,7 @@ final class EditController extends AccountBase
|
||||
|
||||
$accountDetails = $this->accountService->getByIdEnriched($accountRequest->id)->getAccountVData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.account',
|
||||
new Event(
|
||||
$this,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -52,7 +52,7 @@ final class EditPassController extends AccountBase
|
||||
|
||||
$accountDetails = $this->accountService->getByIdEnriched($accountRequest->id)->getAccountVData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.account.pass',
|
||||
new Event(
|
||||
$this,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -64,7 +64,7 @@ final class ViewController extends AccountBase
|
||||
$accountEnrichedDto = $this->accountService->withUserGroups($accountEnrichedDto);
|
||||
$accountEnrichedDto = $this->accountService->withTags($accountEnrichedDto);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.account',
|
||||
new Event(
|
||||
$this,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -57,7 +57,7 @@ final class ViewPassController extends AccountBase
|
||||
|
||||
$accountDetails = $this->accountService->getByIdEnriched($id)->getAccountVData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.account.pass',
|
||||
new Event(
|
||||
$this,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -51,7 +51,7 @@ final class CreateController extends CategoryBase
|
||||
|
||||
$categoryData->setId($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'create.category',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -82,4 +82,4 @@ final class CreateController extends CategoryBase
|
||||
|
||||
return $categoryData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -50,7 +50,7 @@ final class DeleteController extends CategoryBase
|
||||
|
||||
$this->categoryService->delete($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.category',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -68,4 +68,4 @@ final class DeleteController extends CategoryBase
|
||||
$this->returnResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -46,7 +46,7 @@ final class EditController extends CategoryBase
|
||||
|
||||
$this->categoryService->update($categoryData);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.category',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -80,4 +80,4 @@ final class EditController extends CategoryBase
|
||||
|
||||
return $categoryData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -46,7 +46,7 @@ final class SearchController extends CategoryBase
|
||||
|
||||
$itemSearchData = $this->buildSearchData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent('search.category', new Event($this));
|
||||
$this->eventDispatcher->notify('search.category', new Event($this));
|
||||
|
||||
$this->returnResponse(
|
||||
ApiResponse::makeSuccess(
|
||||
@@ -74,4 +74,4 @@ final class SearchController extends CategoryBase
|
||||
|
||||
return $itemSearchData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -53,7 +53,7 @@ final class ViewController extends CategoryBase
|
||||
|
||||
$categoryData = $this->categoryService->getById($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.category',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -78,4 +78,4 @@ final class ViewController extends CategoryBase
|
||||
$this->returnResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -51,7 +51,7 @@ final class CreateController extends ClientBase
|
||||
|
||||
$clientData->setId($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'create.client',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -83,4 +83,4 @@ final class CreateController extends ClientBase
|
||||
|
||||
return $clientData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -50,7 +50,7 @@ final class DeleteController extends ClientBase
|
||||
|
||||
$this->clientService->delete($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.client',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -68,4 +68,4 @@ final class DeleteController extends ClientBase
|
||||
processException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -49,7 +49,7 @@ final class EditController extends ClientBase
|
||||
|
||||
$this->clientService->update($clientData);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.client',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -82,4 +82,4 @@ final class EditController extends ClientBase
|
||||
|
||||
return $clientData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -46,7 +46,7 @@ final class SearchController extends ClientBase
|
||||
|
||||
$itemSearchData = $this->buildSearchData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent('search.client', new Event($this));
|
||||
$this->eventDispatcher->notify('search.client', new Event($this));
|
||||
|
||||
$this->returnResponse(
|
||||
ApiResponse::makeSuccess(
|
||||
@@ -74,4 +74,4 @@ final class SearchController extends ClientBase
|
||||
|
||||
return $itemSearchData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -51,9 +51,9 @@ final class ViewController extends ClientBase
|
||||
|
||||
$clientData = $this->clientService->getById($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.client', new Event($this));
|
||||
$this->eventDispatcher->notify('show.client', new Event($this));
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.client',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -84,4 +84,4 @@ final class ViewController extends ClientBase
|
||||
$this->returnResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -76,7 +76,7 @@ final class BackupController extends ControllerBase
|
||||
|
||||
$this->fileBackupService->doBackup($path);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'run.backup.end',
|
||||
new Event(
|
||||
$this,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -73,7 +73,7 @@ final class ExportController extends ControllerBase
|
||||
$password = $this->apiService->getParamString('password');
|
||||
$path = $this->apiService->getParamString('path', false, BACKUP_PATH);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'run.export.start',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -86,7 +86,7 @@ final class ExportController extends ControllerBase
|
||||
$this->xmlExportService->doExport($path, $password);
|
||||
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'run.export.end',
|
||||
new Event($this, EventMessage::factory()->addDescription(__u('Export process finished')))
|
||||
);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -51,7 +51,7 @@ final class CreateController extends TagBase
|
||||
|
||||
$tagData->setId($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'create.tag',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -81,4 +81,4 @@ final class CreateController extends TagBase
|
||||
|
||||
return $tagData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -50,7 +50,7 @@ final class DeleteController extends TagBase
|
||||
|
||||
$this->tagService->delete($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.tag',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -69,4 +69,4 @@ final class DeleteController extends TagBase
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -49,7 +49,7 @@ final class EditController extends TagBase
|
||||
|
||||
$this->tagService->update($tagData);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.tag',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -80,4 +80,4 @@ final class EditController extends TagBase
|
||||
|
||||
return $tagData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -46,7 +46,7 @@ final class SearchController extends TagBase
|
||||
|
||||
$itemSearchData = $this->buildSearchData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent('search.tag', new Event($this));
|
||||
$this->eventDispatcher->notify('search.tag', new Event($this));
|
||||
$this->returnResponse(
|
||||
ApiResponse::makeSuccess(
|
||||
$this->tagService->search($itemSearchData)->getDataAsArray()
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -48,7 +48,7 @@ final class ViewController extends TagBase
|
||||
$id = $this->apiService->getParamInt('id', true);
|
||||
$tagData = $this->tagService->getById($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.tag',
|
||||
new Event($this, EventMessage::factory()
|
||||
->addDescription(__u('Tag displayed'))
|
||||
@@ -64,4 +64,4 @@ final class ViewController extends TagBase
|
||||
$this->returnResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -51,7 +51,7 @@ final class CreateController extends UserGroupBase
|
||||
|
||||
$userGroupData->setId($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'create.userGroup',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
@@ -82,4 +82,4 @@ final class CreateController extends UserGroupBase
|
||||
|
||||
return $userGroupData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -50,7 +50,7 @@ final class DeleteController extends UserGroupBase
|
||||
|
||||
$this->userGroupService->delete($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.userGroup',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -69,4 +69,4 @@ final class DeleteController extends UserGroupBase
|
||||
$this->returnResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -49,7 +49,7 @@ final class EditController extends UserGroupBase
|
||||
|
||||
$this->userGroupService->update($userGroupData);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.userGroup',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -85,4 +85,4 @@ final class EditController extends UserGroupBase
|
||||
|
||||
return $userGroupData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -46,7 +46,7 @@ final class SearchController extends UserGroupBase
|
||||
|
||||
$itemSearchData = $this->buildSearchData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent('search.userGroup', new Event($this));
|
||||
$this->eventDispatcher->notify('search.userGroup', new Event($this));
|
||||
|
||||
$this->returnResponse(
|
||||
ApiResponse::makeSuccess($this->userGroupService->search($itemSearchData)->getDataAsArray())
|
||||
@@ -70,4 +70,4 @@ final class SearchController extends UserGroupBase
|
||||
|
||||
return $itemSearchData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -48,7 +48,7 @@ final class ViewController extends UserGroupBase
|
||||
$id = $this->apiService->getParamInt('id', true);
|
||||
$userGroupData = $this->userGroupService->getById($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.userGroup',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -68,4 +68,4 @@ final class ViewController extends UserGroupBase
|
||||
$this->returnResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -139,7 +139,7 @@ final class IndexController extends ControllerBase
|
||||
$this->tabsGridHelper->addTab($this->getPublicLinksList());
|
||||
}
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.itemlist.accesses',
|
||||
new Event($this)
|
||||
);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -60,7 +60,7 @@ final class CopyController extends AccountViewBase
|
||||
);
|
||||
$this->view->assign('formRoute', 'account/saveCopy');
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.account.copy', new Event($this));
|
||||
$this->eventDispatcher->notify('show.account.copy', new Event($this));
|
||||
|
||||
if ($this->isAjax === false) {
|
||||
$this->upgradeView();
|
||||
@@ -70,7 +70,7 @@ final class CopyController extends AccountViewBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
if ($this->isAjax === false && !$this->view->isUpgraded()) {
|
||||
$this->upgradeView();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -82,7 +82,7 @@ final class CopyPassController extends AccountControllerBase
|
||||
'accpass' => $this->accountPasswordHelper->getPasswordClear($account),
|
||||
];
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'copy.account.pass',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -82,7 +82,7 @@ final class CopyPassHistoryController extends AccountControllerBase
|
||||
'accpass' => $this->accountPasswordHelper->getPasswordClear($account),
|
||||
];
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'copy.account.pass.history',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -53,7 +53,7 @@ final class CreateController extends AccountViewBase
|
||||
);
|
||||
$this->view->assign('formRoute', 'account/saveCreate');
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.account.create', new Event($this));
|
||||
$this->eventDispatcher->notify('show.account.create', new Event($this));
|
||||
|
||||
if ($this->isAjax === false) {
|
||||
$this->upgradeView();
|
||||
@@ -70,4 +70,4 @@ final class CreateController extends AccountViewBase
|
||||
ErrorUtil::showExceptionInView($this->view, $e, 'account');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -85,7 +85,7 @@ final class DeleteController extends AccountControllerBase
|
||||
);
|
||||
$this->view->assign('formRoute', 'account/saveDelete');
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.account.delete', new Event($this));
|
||||
$this->eventDispatcher->notify('show.account.delete', new Event($this));
|
||||
|
||||
if ($this->isAjax === false) {
|
||||
$this->upgradeView();
|
||||
@@ -95,7 +95,7 @@ final class DeleteController extends AccountControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'exception',
|
||||
new Event($e)
|
||||
);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -63,7 +63,7 @@ final class EditController extends AccountViewBase
|
||||
|
||||
$this->accountService->incrementViewCounter($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.account.edit', new Event($this));
|
||||
$this->eventDispatcher->notify('show.account.edit', new Event($this));
|
||||
|
||||
if ($this->isAjax === false) {
|
||||
$this->upgradeView();
|
||||
@@ -73,7 +73,7 @@ final class EditController extends AccountViewBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
if ($this->isAjax === false && !$this->view->isUpgraded()) {
|
||||
$this->upgradeView();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -64,7 +64,7 @@ final class EditPassController extends AccountViewBase
|
||||
);
|
||||
$this->view->assign('formRoute', 'account/saveEditPass');
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.account.editpass', new Event($this));
|
||||
$this->eventDispatcher->notify('show.account.editpass', new Event($this));
|
||||
|
||||
if ($this->isAjax === false) {
|
||||
$this->upgradeView();
|
||||
@@ -74,7 +74,7 @@ final class EditPassController extends AccountViewBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
if ($this->isAjax === false && !$this->view->isUpgraded()) {
|
||||
$this->upgradeView();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -64,13 +64,13 @@ final class IndexController extends AccountControllerBase
|
||||
$this->accountSearchHelper->getSearchBox();
|
||||
$this->accountSearchHelper->getAccountSearch();
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.account.search', new Event($this));
|
||||
$this->eventDispatcher->notify('show.account.search', new Event($this));
|
||||
|
||||
$this->view();
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
ErrorUtil::showExceptionInView($this->view, $e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -72,7 +72,7 @@ final class RequestAccessController extends ControllerBase
|
||||
$this->view->addTemplate('account-request');
|
||||
$this->view->assign('formRoute', 'account/saveRequest');
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.account.request', new Event($this));
|
||||
$this->eventDispatcher->notify('show.account.request', new Event($this));
|
||||
|
||||
if ($this->isAjax === false) {
|
||||
$this->upgradeView();
|
||||
@@ -82,7 +82,7 @@ final class RequestAccessController extends ControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
if ($this->isAjax === false && !$this->view->isUpgraded()) {
|
||||
$this->upgradeView();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -50,7 +50,7 @@ final class SaveCopyController extends AccountSaveBase
|
||||
|
||||
$accountDetails = $this->accountService->getByIdEnriched($accountId)->getAccountVData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'create.account',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
@@ -80,7 +80,7 @@ final class SaveCopyController extends AccountSaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -50,7 +50,7 @@ final class SaveCreateController extends AccountSaveBase
|
||||
|
||||
$accountDetails = $this->accountService->getByIdEnriched($accountId)->getAccountVData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'create.account',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
@@ -80,7 +80,7 @@ final class SaveCreateController extends AccountSaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -76,7 +76,7 @@ final class SaveDeleteController extends AccountControllerBase
|
||||
|
||||
$this->accountService->delete($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.account',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
@@ -92,7 +92,7 @@ final class SaveDeleteController extends AccountControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -57,7 +57,7 @@ final class SaveEditController extends AccountSaveBase
|
||||
|
||||
$accountDetails = $this->accountService->getByIdEnriched($id)->getAccountVData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.account',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
@@ -87,7 +87,7 @@ final class SaveEditController extends AccountSaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -79,7 +79,7 @@ final class SaveEditPassController extends AccountControllerBase
|
||||
|
||||
$accountDetails = $this->accountService->getByIdEnriched($id)->getAccountVData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.account.pass',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
@@ -102,7 +102,7 @@ final class SaveEditPassController extends AccountControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -74,7 +74,7 @@ final class SaveEditRestoreController extends AccountControllerBase
|
||||
|
||||
$accountDetails = $this->accountService->getByIdEnriched($id)->getAccountVData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.account.restore',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
@@ -95,7 +95,7 @@ final class SaveEditRestoreController extends AccountControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -92,7 +92,7 @@ final class SaveRequestController extends AccountControllerBase
|
||||
|
||||
$usersId = [$accountDetails->userId, $accountDetails->userEditId];
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'request.account',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
@@ -131,7 +131,7 @@ final class SaveRequestController extends AccountControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -63,15 +63,15 @@ final class SearchController extends AccountControllerBase
|
||||
try {
|
||||
$this->accountSearchHelper->getAccountSearch();
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.account.search', new Event($this));
|
||||
$this->eventDispatcher->notify('show.account.search', new Event($this));
|
||||
|
||||
return $this->returnJsonResponseData(['html' => $this->render()]);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -66,7 +66,7 @@ final class ViewController extends AccountViewBase
|
||||
|
||||
$this->accountService->incrementViewCounter($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.account', new Event($this));
|
||||
$this->eventDispatcher->notify('show.account', new Event($this));
|
||||
|
||||
if ($this->isAjax === false) {
|
||||
$this->upgradeView();
|
||||
@@ -76,7 +76,7 @@ final class ViewController extends AccountViewBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
if ($this->isAjax === false && !$this->view->isUpgraded()) {
|
||||
$this->upgradeView();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -80,7 +80,7 @@ final class ViewHistoryController extends AccountControllerBase
|
||||
|
||||
$this->view->assign('formRoute', 'account/saveRestore');
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.account.history', new Event($this));
|
||||
$this->eventDispatcher->notify('show.account.history', new Event($this));
|
||||
|
||||
if ($this->isAjax === false) {
|
||||
$this->upgradeView();
|
||||
@@ -90,7 +90,7 @@ final class ViewHistoryController extends AccountControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
if ($this->isAjax === false && !$this->view->isUpgraded()) {
|
||||
$this->upgradeView();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -140,7 +140,7 @@ final class ViewLinkController extends AccountControllerBase
|
||||
$deepLink = new Uri($baseUrl);
|
||||
$deepLink->addParam('r', Acl::getActionRoute(ActionsInterface::ACCOUNT_VIEW).'/'.$accountData->getId());
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.account.link',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
@@ -168,7 +168,7 @@ final class ViewLinkController extends AccountControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
ErrorUtil::showExceptionInView($this->view, $e, 'account-link');
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -89,7 +89,7 @@ final class ViewPassController extends AccountControllerBase
|
||||
|
||||
$this->accountService->incrementDecryptCounter($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.account.pass',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
@@ -102,7 +102,7 @@ final class ViewPassController extends AccountControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -86,7 +86,7 @@ final class ViewPassHistoryController extends AccountControllerBase
|
||||
|
||||
$data = $this->accountPasswordHelper->getPasswordView($account, $useImage);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.account.pass.history',
|
||||
new Event(
|
||||
$this, EventMessage::factory()
|
||||
@@ -99,7 +99,7 @@ final class ViewPassHistoryController extends AccountControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -53,9 +53,9 @@ final class MarkController extends AccountFavoriteBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -53,9 +53,9 @@ final class UnmarkController extends AccountFavoriteBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -53,7 +53,7 @@ final class DeleteController extends AccountFileBase
|
||||
if ($id === null) {
|
||||
$this->accountFileService->deleteByIdBatch($this->getItemsIdFromRequest($this->request));
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.accountFile.selection',
|
||||
new Event($this, EventMessage::factory()->addDescription(__u('Files deleted')))
|
||||
);
|
||||
@@ -61,7 +61,7 @@ final class DeleteController extends AccountFileBase
|
||||
return $this->returnJsonResponse(0, __u('Files deleted'));
|
||||
}
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.accountFile',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -75,7 +75,7 @@ final class DeleteController extends AccountFileBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -53,7 +53,7 @@ final class DownloadController extends AccountFileBase
|
||||
throw new SPException(__u('File does not exist'), SPException::INFO);
|
||||
}
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'download.accountFile',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -86,7 +86,7 @@ final class DownloadController extends AccountFileBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
}
|
||||
|
||||
return '';
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -70,7 +70,7 @@ final class ListController extends AccountFileBase
|
||||
return;
|
||||
}
|
||||
|
||||
$this->eventDispatcher->notifyEvent('list.accountFile', new Event($this));
|
||||
$this->eventDispatcher->notify('list.accountFile', new Event($this));
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -130,7 +130,7 @@ final class UploadController extends ControllerBase
|
||||
|
||||
$account = $this->accountService->getByIdEnriched($accountId)->getAccountVData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'upload.accountFile',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -148,13 +148,13 @@ final class UploadController extends ControllerBase
|
||||
} catch (SPException $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponse(1, $e->getMessage(), [$e->getHint()]);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -65,7 +65,7 @@ final class ViewController extends AccountFileBase
|
||||
$this->view->assign('fileData', $fileData);
|
||||
$this->view->assign('isImage', 1);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.accountFile',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -84,7 +84,7 @@ final class ViewController extends AccountFileBase
|
||||
$this->view->assign('mime', $type);
|
||||
$this->view->assign('data', htmlentities($fileData->getContent()));
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.accountFile',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -99,7 +99,7 @@ final class ViewController extends AccountFileBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -75,7 +75,7 @@ final class DeleteController extends ControllerBase
|
||||
if ($id === null) {
|
||||
$this->accountHistoryService->deleteByIdBatch($this->getItemsIdFromRequest($this->request));
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.accountHistory.selection',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -93,7 +93,7 @@ final class DeleteController extends ControllerBase
|
||||
|
||||
$this->accountHistoryService->delete($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.accountHistory',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -111,7 +111,7 @@ final class DeleteController extends ControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -81,7 +81,7 @@ final class RestoreController extends ControllerBase
|
||||
$this->accountService->restoreRemoved($accountDetails);
|
||||
}
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'restore.accountHistory',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -96,7 +96,7 @@ final class RestoreController extends ControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -109,7 +109,7 @@ final class BulkEditController extends ControllerBase
|
||||
|
||||
$this->setViewData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.account.bulkEdit',
|
||||
new Event($this)
|
||||
);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -79,7 +79,7 @@ final class DeleteController extends ControllerBase
|
||||
|
||||
$this->deleteCustomFieldsForItem(ActionsInterface::ACCOUNT, $id, $this->customFieldService);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.account.selection',
|
||||
new Event($this, EventMessage::factory()->addDescription(__u('Accounts removed')))
|
||||
);
|
||||
@@ -93,7 +93,7 @@ final class DeleteController extends ControllerBase
|
||||
|
||||
$this->deleteCustomFieldsForItem(ActionsInterface::ACCOUNT, $id, $this->customFieldService);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.account',
|
||||
new Event(
|
||||
$this,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -96,7 +96,7 @@ final class SaveBulkEditController extends ControllerBase
|
||||
|
||||
$this->accountService->updateBulk($accountBulkDto);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.account.bulk',
|
||||
new Event($this, EventMessage::factory()->addDescription(__u('Accounts updated')))
|
||||
);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -56,15 +56,15 @@ final class CreateController extends AuthTokenViewBase
|
||||
|
||||
$this->setViewData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.authToken.create', new Event($this));
|
||||
$this->eventDispatcher->notify('show.authToken.create', new Event($this));
|
||||
|
||||
return $this->returnJsonResponseData(['html' => $this->render()]);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -60,7 +60,7 @@ final class DeleteController extends AuthTokenSaveBase
|
||||
|
||||
$this->deleteCustomFieldsForItem(ActionsInterface::AUTHTOKEN, $id, $this->customFieldService);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.authToken.selection',
|
||||
new Event($this, EventMessage::factory()->addDescription(__u('Authorizations deleted')))
|
||||
);
|
||||
@@ -72,7 +72,7 @@ final class DeleteController extends AuthTokenSaveBase
|
||||
|
||||
$this->deleteCustomFieldsForItem(ActionsInterface::AUTHTOKEN, $id, $this->customFieldService);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.authToken',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -86,9 +86,9 @@ final class DeleteController extends AuthTokenSaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -60,15 +60,15 @@ final class EditController extends AuthTokenViewBase
|
||||
|
||||
$this->setViewData($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.authToken.edit', new Event($this));
|
||||
$this->eventDispatcher->notify('show.authToken.edit', new Event($this));
|
||||
|
||||
return $this->returnJsonResponseData(['html' => $this->render()]);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -62,7 +62,7 @@ final class SaveCreateController extends AuthTokenSaveBase
|
||||
$this->customFieldService
|
||||
);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('create.authToken', new Event($this));
|
||||
$this->eventDispatcher->notify('create.authToken', new Event($this));
|
||||
|
||||
return $this->returnJsonResponse(JsonResponse::JSON_SUCCESS, __u('Authorization added'));
|
||||
} catch (ValidationException $e) {
|
||||
@@ -70,9 +70,9 @@ final class SaveCreateController extends AuthTokenSaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -61,7 +61,7 @@ final class SaveEditController extends AuthTokenSaveBase
|
||||
if ($this->form->isRefresh()) {
|
||||
$this->authTokenService->refreshAndUpdate($this->form->getItemData());
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'refresh.authToken',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -73,7 +73,7 @@ final class SaveEditController extends AuthTokenSaveBase
|
||||
} else {
|
||||
$this->authTokenService->update($this->form->getItemData());
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.authToken',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -97,10 +97,10 @@ final class SaveEditController extends AuthTokenSaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -60,7 +60,7 @@ final class ViewController extends AuthTokenViewBase
|
||||
|
||||
$this->setViewData($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'show.authToken',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -74,9 +74,9 @@ final class ViewController extends AuthTokenViewBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -57,15 +57,15 @@ final class CreateController extends CategoryViewBase
|
||||
|
||||
$this->setViewData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.category.create', new Event($this));
|
||||
$this->eventDispatcher->notify('show.category.create', new Event($this));
|
||||
|
||||
return $this->returnJsonResponseData(['html' => $this->render()]);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -59,7 +59,7 @@ final class DeleteController extends CategorySaveBase
|
||||
|
||||
$this->deleteCustomFieldsForItem(ActionsInterface::CATEGORY, $id, $this->customFieldService);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.category',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -74,7 +74,7 @@ final class DeleteController extends CategorySaveBase
|
||||
|
||||
$this->deleteCustomFieldsForItem(ActionsInterface::CATEGORY, $id, $this->customFieldService);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.category',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -91,9 +91,9 @@ final class DeleteController extends CategorySaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -62,15 +62,15 @@ final class EditController extends CategoryViewBase
|
||||
|
||||
$this->setViewData($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.category.edit', new Event($this));
|
||||
$this->eventDispatcher->notify('show.category.edit', new Event($this));
|
||||
|
||||
return $this->returnJsonResponseData(['html' => $this->render()]);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -56,7 +56,7 @@ final class SaveCreateAction extends CategorySaveBase
|
||||
|
||||
$id = $this->categoryService->create($itemData);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'create.category',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -79,9 +79,9 @@ final class SaveCreateAction extends CategorySaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -60,7 +60,7 @@ final class SaveEditController extends CategorySaveBase
|
||||
|
||||
$this->categoryService->update($itemData);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.category',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -83,9 +83,9 @@ final class SaveEditController extends CategorySaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -60,15 +60,15 @@ final class ViewController extends CategoryViewBase
|
||||
|
||||
$this->setViewData($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.category', new Event($this));
|
||||
$this->eventDispatcher->notify('show.category', new Event($this));
|
||||
|
||||
return $this->returnJsonResponseData(['html' => $this->render()]);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -58,13 +58,13 @@ final class CreateController extends ClientViewBase
|
||||
|
||||
$this->setViewData();
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.client.create', new Event($this));
|
||||
$this->eventDispatcher->notify('show.client.create', new Event($this));
|
||||
|
||||
return $this->returnJsonResponseData(['html' => $this->render()]);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'exception',
|
||||
new Event($e)
|
||||
);
|
||||
@@ -72,4 +72,4 @@ final class CreateController extends ClientViewBase
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -63,7 +63,7 @@ final class DeleteController extends ClientSaveBase
|
||||
|
||||
$this->deleteCustomFieldsForItem(ActionsInterface::CLIENT, $id, $this->customFieldService);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.client.selection',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -77,7 +77,7 @@ final class DeleteController extends ClientSaveBase
|
||||
|
||||
$this->deleteCustomFieldsForItem(ActionsInterface::CLIENT, $id, $this->customFieldService);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'delete.client',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -94,9 +94,9 @@ final class DeleteController extends ClientSaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -62,15 +62,15 @@ final class EditController extends ClientViewBase
|
||||
|
||||
$this->setViewData($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.client.edit', new Event($this));
|
||||
$this->eventDispatcher->notify('show.client.edit', new Event($this));
|
||||
|
||||
return $this->returnJsonResponseData(['html' => $this->render()]);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -61,7 +61,7 @@ final class SaveCreateController extends ClientSaveBase
|
||||
|
||||
$id = $this->clientService->create($itemData);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'create.client',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -84,9 +84,9 @@ final class SaveCreateController extends ClientSaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -63,7 +63,7 @@ final class SaveEditController extends ClientSaveBase
|
||||
|
||||
$this->clientService->update($this->form->getItemData());
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'edit.client',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -84,9 +84,9 @@ final class SaveEditController extends ClientSaveBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -62,15 +62,15 @@ final class ViewController extends ClientViewBase
|
||||
|
||||
$this->setViewData($id);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('show.client', new Event($this));
|
||||
$this->eventDispatcher->notify('show.client', new Event($this));
|
||||
|
||||
return $this->returnJsonResponseData(['html' => $this->render()]);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -59,7 +59,7 @@ final class SaveController extends SimpleControllerBase
|
||||
$this->handleFilesConfig($configData, $eventMessage);
|
||||
$this->handlePublicLinksConfig($configData, $eventMessage);
|
||||
} catch (ValidationException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
@@ -68,7 +68,7 @@ final class SaveController extends SimpleControllerBase
|
||||
$configData,
|
||||
$this->config,
|
||||
function () use ($eventMessage) {
|
||||
$this->eventDispatcher->notifyEvent('save.config.account', new Event($this, $eventMessage));
|
||||
$this->eventDispatcher->notify('save.config.account', new Event($this, $eventMessage));
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -159,7 +159,7 @@ final class SaveController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_ACCOUNT);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -64,7 +64,7 @@ final class DownloadBackupAppController extends SimpleControllerBase
|
||||
$file = new FileHandler($filePath);
|
||||
$file->checkFileExists();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'download.backupAppFile',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -89,7 +89,7 @@ final class DownloadBackupAppController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
}
|
||||
|
||||
return '';
|
||||
@@ -107,9 +107,9 @@ final class DownloadBackupAppController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_BACKUP);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -66,7 +66,7 @@ final class DownloadBackupDbController extends SimpleControllerBase
|
||||
$file = new FileHandler($filePath);
|
||||
$file->checkFileExists();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'download.backupDbFile',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -91,7 +91,7 @@ final class DownloadBackupDbController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
}
|
||||
|
||||
return '';
|
||||
@@ -109,9 +109,9 @@ final class DownloadBackupDbController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_BACKUP);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -61,7 +61,7 @@ final class DownloadExportController extends SimpleControllerBase
|
||||
$file = new FileHandler($filePath);
|
||||
$file->checkFileExists();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'download.exportFile',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -86,7 +86,7 @@ final class DownloadExportController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'exception',
|
||||
new Event($e)
|
||||
);
|
||||
@@ -107,9 +107,9 @@ final class DownloadExportController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_BACKUP);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -72,7 +72,7 @@ final class FileBackupController extends SimpleControllerBase
|
||||
|
||||
$this->fileBackupService->doBackup(BACKUP_PATH);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'run.backup.end',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -86,7 +86,7 @@ final class FileBackupController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
@@ -104,7 +104,7 @@ final class FileBackupController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_BACKUP);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -74,7 +74,7 @@ final class XmlExportController extends SimpleControllerBase
|
||||
}
|
||||
|
||||
try {
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'run.export.start',
|
||||
new Event($this, EventMessage::factory()->addDescription(__u('sysPass XML export')))
|
||||
);
|
||||
@@ -83,7 +83,7 @@ final class XmlExportController extends SimpleControllerBase
|
||||
|
||||
$this->xmlExportService->doExport(BACKUP_PATH, $exportPassword);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'run.export.end',
|
||||
new Event($this, EventMessage::factory()->addDescription(__u('Export process finished')))
|
||||
);
|
||||
@@ -100,7 +100,7 @@ final class XmlExportController extends SimpleControllerBase
|
||||
|
||||
$nodes = $verifyResult->getNodes();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'run.export.verify',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -122,7 +122,7 @@ final class XmlExportController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
@@ -140,7 +140,7 @@ final class XmlExportController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_BACKUP);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -73,7 +73,7 @@ final class RefreshController extends SimpleControllerBase
|
||||
|
||||
$this->masterPassService->updateConfig(Hash::hashKey(CryptSession::getSessionKey($this->session)));
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'refresh.masterPassword.hash',
|
||||
new Event($this, EventMessage::factory()->addDescription(__u('Master password hash updated')))
|
||||
);
|
||||
@@ -82,7 +82,7 @@ final class RefreshController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponse(
|
||||
JsonResponse::JSON_ERROR,
|
||||
@@ -102,7 +102,7 @@ final class RefreshController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_CRYPT);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -149,15 +149,15 @@ final class SaveController extends SimpleControllerBase
|
||||
$task
|
||||
);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('update.masterPassword.start', new Event($this));
|
||||
$this->eventDispatcher->notify('update.masterPassword.start', new Event($this));
|
||||
|
||||
$this->masterPassService->changeMasterPassword($request);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('update.masterPassword.end', new Event($this));
|
||||
$this->eventDispatcher->notify('update.masterPassword.end', new Event($this));
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
} finally {
|
||||
@@ -167,13 +167,13 @@ final class SaveController extends SimpleControllerBase
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
$this->eventDispatcher->notifyEvent('update.masterPassword.hash', new Event($this));
|
||||
$this->eventDispatcher->notify('update.masterPassword.hash', new Event($this));
|
||||
|
||||
$this->masterPassService->updateConfig(Hash::hashKey($newMasterPass));
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponse(
|
||||
JsonResponse::JSON_ERROR,
|
||||
@@ -212,7 +212,7 @@ final class SaveController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_CRYPT);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -90,7 +90,7 @@ final class SaveTempController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponse(
|
||||
JsonResponse::JSON_WARNING,
|
||||
@@ -104,7 +104,7 @@ final class SaveTempController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
@@ -121,7 +121,7 @@ final class SaveTempController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_CRYPT);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -63,7 +63,7 @@ final class DownloadConfigBackup extends SimpleControllerBase
|
||||
}
|
||||
|
||||
try {
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'download.configBackupFile',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -95,7 +95,7 @@ final class DownloadConfigBackup extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
}
|
||||
|
||||
return '';
|
||||
@@ -111,7 +111,7 @@ final class DownloadConfigBackup extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_GENERAL);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -54,7 +54,7 @@ final class DownloadLogController extends SimpleControllerBase
|
||||
$file = new FileHandler(LOG_FILE);
|
||||
$file->checkFileExists();
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'download.logFile',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -78,7 +78,7 @@ final class DownloadLogController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
}
|
||||
|
||||
return '';
|
||||
@@ -94,9 +94,9 @@ final class DownloadLogController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_GENERAL);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -70,7 +70,7 @@ final class SaveController extends SimpleControllerBase
|
||||
Util::lockApp($this->session->getUserData()->getId(), 'config');
|
||||
}
|
||||
|
||||
$this->eventDispatcher->notifyEvent('save.config.general', new Event($this, $eventMessage));
|
||||
$this->eventDispatcher->notify('save.config.general', new Event($this, $eventMessage));
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -231,7 +231,7 @@ final class SaveController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_GENERAL);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -70,7 +70,7 @@ final class ImportController extends SimpleControllerBase
|
||||
}
|
||||
|
||||
try {
|
||||
$this->eventDispatcher->notifyEvent('run.import.start', new Event($this));
|
||||
$this->eventDispatcher->notify('run.import.start', new Event($this));
|
||||
|
||||
SessionContext::close();
|
||||
|
||||
@@ -79,7 +79,7 @@ final class ImportController extends SimpleControllerBase
|
||||
FileImport::fromRequest('inFile', $this->request)
|
||||
);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'run.import.end',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -103,7 +103,7 @@ final class ImportController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
@@ -139,7 +139,7 @@ final class ImportController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_IMPORT);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ final class CheckController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
@@ -116,7 +116,7 @@ final class CheckController extends SimpleControllerBase
|
||||
|
||||
$this->extensionChecker->checkLdapAvailable(true);
|
||||
} catch (UnauthorizedPageException|CheckException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ final class CheckImportController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
@@ -122,7 +122,7 @@ final class CheckImportController extends SimpleControllerBase
|
||||
|
||||
$this->extensionChecker->checkLdapAvailable(true);
|
||||
} catch (UnauthorizedPageException|CheckException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -85,7 +85,7 @@ final class ImportController extends SimpleControllerBase
|
||||
|
||||
$ldapParams = $this->getLdapParamsFromRequest($this->request);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'import.ldap.start',
|
||||
new Event($this, EventMessage::factory()->addDescription(__u('LDAP Import')))
|
||||
);
|
||||
@@ -96,7 +96,7 @@ final class ImportController extends SimpleControllerBase
|
||||
$this->ldapImportService->importGroups($ldapParams, $ldapImportParams);
|
||||
}
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'import.ldap.end',
|
||||
new Event($this, EventMessage::factory()->addDescription(__u('Import finished')))
|
||||
);
|
||||
@@ -121,7 +121,7 @@ final class ImportController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
@@ -169,7 +169,7 @@ final class ImportController extends SimpleControllerBase
|
||||
|
||||
$this->extensionChecker->checkLdapAvailable(true);
|
||||
} catch (UnauthorizedPageException|CheckException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -103,13 +103,13 @@ final class SaveController extends SimpleControllerBase
|
||||
$configData,
|
||||
$this->config,
|
||||
function () use ($eventMessage) {
|
||||
$this->eventDispatcher->notifyEvent('save.config.ldap', new Event($this, $eventMessage));
|
||||
$this->eventDispatcher->notify('save.config.ldap', new Event($this, $eventMessage));
|
||||
}
|
||||
);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
@@ -128,7 +128,7 @@ final class SaveController extends SimpleControllerBase
|
||||
|
||||
$this->extensionChecker->checkLdapAvailable(true);
|
||||
} catch (UnauthorizedPageException|CheckException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -78,7 +78,7 @@ final class CheckController extends SimpleControllerBase
|
||||
|
||||
$this->mailService->check($mailParams, $mailRecipients[0]);
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
$this->eventDispatcher->notify(
|
||||
'send.mail.check',
|
||||
new Event(
|
||||
$this,
|
||||
@@ -96,7 +96,7 @@ final class CheckController extends SimpleControllerBase
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
return $this->returnJsonResponseException($e);
|
||||
}
|
||||
@@ -134,7 +134,7 @@ final class CheckController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_MAIL);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -106,7 +106,7 @@ final class SaveController extends SimpleControllerBase
|
||||
$configData,
|
||||
$this->config,
|
||||
function () use ($eventMessage) {
|
||||
$this->eventDispatcher->notifyEvent('save.config.mail', new Event($this, $eventMessage));
|
||||
$this->eventDispatcher->notify('save.config.mail', new Event($this, $eventMessage));
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -122,9 +122,9 @@ final class SaveController extends SimpleControllerBase
|
||||
$this->checks();
|
||||
$this->checkAccess(ActionsInterface::CONFIG_MAIL);
|
||||
} catch (UnauthorizedPageException $e) {
|
||||
$this->eventDispatcher->notifyEvent('exception', new Event($e));
|
||||
$this->eventDispatcher->notify('exception', new Event($e));
|
||||
|
||||
$this->returnJsonResponseException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user