diff --git a/Content.Server/Database/ServerDbPostgres.cs b/Content.Server/Database/ServerDbPostgres.cs index 12c65b069b..9629ed0ad6 100644 --- a/Content.Server/Database/ServerDbPostgres.cs +++ b/Content.Server/Database/ServerDbPostgres.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Content.Server.Administration.Logs; +using Content.Server.White; using Content.Shared.CCVar; using Microsoft.EntityFrameworkCore; using Robust.Shared.Configuration; diff --git a/Content.Server/Database/ServerDbSqlite.cs b/Content.Server/Database/ServerDbSqlite.cs index cb60bccef5..b9a4b6fb7b 100644 --- a/Content.Server/Database/ServerDbSqlite.cs +++ b/Content.Server/Database/ServerDbSqlite.cs @@ -8,6 +8,7 @@ using System.Threading.Tasks; using Content.Server.Administration.Logs; using Content.Server.IP; using Content.Server.Preferences.Managers; +using Content.Server.White; using Content.Shared.CCVar; using Microsoft.EntityFrameworkCore; using Robust.Shared.Configuration; diff --git a/Content.Server/Entry/EntryPoint.cs b/Content.Server/Entry/EntryPoint.cs index 18d44c5ff2..57952de197 100644 --- a/Content.Server/Entry/EntryPoint.cs +++ b/Content.Server/Entry/EntryPoint.cs @@ -30,6 +30,7 @@ using Robust.Shared.Prototypes; using Robust.Shared.Timing; using Robust.Shared.Utility; using Content.Server.UtkaIntegration; +using Content.Server.White; using Content.Server.White.JoinQueue; using Content.Server.White.Jukebox; using Content.Server.White.Sponsors; @@ -108,6 +109,7 @@ namespace Content.Server.Entry IoCManager.Resolve().Initialize(); IoCManager.Resolve().Initialize(); IoCManager.Resolve().Initialize(); + UnsafePseudoIoC.Initialize(); //WD-EDIT IoCManager.Resolve().Initialize(); diff --git a/Content.Server/White/UnsafePseudoIoC.cs b/Content.Server/White/UnsafePseudoIoC.cs new file mode 100644 index 0000000000..7e4dec34ac --- /dev/null +++ b/Content.Server/White/UnsafePseudoIoC.cs @@ -0,0 +1,14 @@ +using Robust.Shared.Configuration; + +namespace Content.Server.White; + +public static class UnsafePseudoIoC // Я НАНАВИЖУ IOCMAANGERRESOLVEPOSHEL NAHUI +{ + public static IConfigurationManager ConfigurationManager = default!; + + public static void Initialize() + { + ConfigurationManager = IoCManager.Resolve(); + } + +}