mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] Инициализация DaoProvider
This commit is contained in:
parent
c44208fed3
commit
4bb5993ef0
1 changed files with 3 additions and 0 deletions
|
@ -214,10 +214,12 @@ public void init() {
|
||||||
}
|
}
|
||||||
permissionsHandler.init(server);
|
permissionsHandler.init(server);
|
||||||
hwidHandler.init();
|
hwidHandler.init();
|
||||||
|
dao.init(server);
|
||||||
if (protectHandler != null) {
|
if (protectHandler != null) {
|
||||||
protectHandler.checkLaunchServerLicense();
|
protectHandler.checkLaunchServerLicense();
|
||||||
}
|
}
|
||||||
server.registerObject("permissionsHandler", permissionsHandler);
|
server.registerObject("permissionsHandler", permissionsHandler);
|
||||||
|
server.registerObject("daoProvider", dao);
|
||||||
for (AuthProviderPair pair : auth) {
|
for (AuthProviderPair pair : auth) {
|
||||||
server.registerObject("auth.".concat(pair.name).concat(".provider"), pair.provider);
|
server.registerObject("auth.".concat(pair.name).concat(".provider"), pair.provider);
|
||||||
server.registerObject("auth.".concat(pair.name).concat(".handler"), pair.handler);
|
server.registerObject("auth.".concat(pair.name).concat(".handler"), pair.handler);
|
||||||
|
@ -570,6 +572,7 @@ public LaunchServer(Path dir, boolean testEnv, String[] args) throws IOException
|
||||||
}
|
}
|
||||||
config.permissionsHandler.init(this);
|
config.permissionsHandler.init(this);
|
||||||
config.hwidHandler.init();
|
config.hwidHandler.init();
|
||||||
|
config.dao.init(this);
|
||||||
if (config.protectHandler != null) {
|
if (config.protectHandler != null) {
|
||||||
config.protectHandler.checkLaunchServerLicense();
|
config.protectHandler.checkLaunchServerLicense();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue