mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-07 00:46:59 +01:00
* [ADD] Added notifications event handler
* [ADD] Added account acl file based cache * [ADD] Added deep links * [FIX] Several bugfixes
This commit is contained in:
@@ -145,10 +145,6 @@ class Bootstrap
|
||||
$this->language = $container->get(Language::class);
|
||||
$this->upgrade = $container->get(Upgrade::class);
|
||||
|
||||
$eventDispatcher = $container->get(EventDispatcher::class);
|
||||
$eventDispatcher->attach($container->get(LogHandler::class));
|
||||
$eventDispatcher->attach($container->get(NotificationHandler::class));
|
||||
|
||||
$this->initRouter();
|
||||
}
|
||||
|
||||
@@ -488,6 +484,8 @@ class Bootstrap
|
||||
// Comprobar si es necesario actualizar componentes
|
||||
// $this->checkUpgrade();
|
||||
|
||||
$this->initEventHandlers();
|
||||
|
||||
// Inicializar la sesión
|
||||
$this->initUserSession();
|
||||
|
||||
@@ -650,6 +648,20 @@ class Bootstrap
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes event handlers
|
||||
*/
|
||||
protected function initEventHandlers()
|
||||
{
|
||||
$eventDispatcher = self::$container->get(EventDispatcher::class);
|
||||
|
||||
if ($this->configData->isLogEnabled()) {
|
||||
$eventDispatcher->attach(self::$container->get(LogHandler::class));
|
||||
}
|
||||
|
||||
$eventDispatcher->attach(self::$container->get(NotificationHandler::class));
|
||||
}
|
||||
|
||||
/**
|
||||
* Comprobar si es necesario actualizar componentes
|
||||
*
|
||||
|
||||
@@ -79,7 +79,7 @@ class ConfigService extends Service
|
||||
);
|
||||
}
|
||||
|
||||
return $query->value;
|
||||
return empty($query->value) ? $default : $query->value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user