* [ADD] Added notifications event handler

* [ADD] Added account acl file based cache
* [ADD] Added deep links
* [FIX] Several bugfixes
This commit is contained in:
nuxsmin
2018-03-05 01:50:23 +01:00
parent f821b716e4
commit 6baaae6c62
2 changed files with 17 additions and 5 deletions

View File

@@ -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
*

View File

@@ -79,7 +79,7 @@ class ConfigService extends Service
);
}
return $query->value;
return empty($query->value) ? $default : $query->value;
}
/**