mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-12 03:16:54 +01:00
chore: Refactor EventDispatcher and observer pattern
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user