@tsed/common 6.87.0 → 6.87.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2209,20 +2209,14 @@ Platform = __decorate([Injectable({
2209
2209
  $log.name = "TSED";
2210
2210
  function createInjector(settings = {}) {
2211
2211
  const injector = new InjectorService();
2212
- injector.settings = createSettingsService(injector);
2212
+ injector.addProvider(PlatformConfiguration);
2213
+ injector.settings = injector.invoke(PlatformConfiguration);
2213
2214
  injector.logger = $log;
2214
2215
  injector.settings.set(settings);
2215
2216
  setLoggerLevel(injector);
2216
2217
  return injector;
2217
2218
  }
2218
2219
 
2219
- function createSettingsService(injector) {
2220
- const provider = GlobalProviders.get(PlatformConfiguration).clone();
2221
- provider.instance = injector.invoke(provider.useClass);
2222
- injector.addProvider(PlatformConfiguration, provider);
2223
- return provider.instance;
2224
- }
2225
-
2226
2220
  function createPlatformApplication(injector) {
2227
2221
  injector.forkProvider(PlatformApplication);
2228
2222
  }