kmorcinek / conqueror-browser-spy

An app for better playing an online game http://conquerorgame.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use auto Dependency Injection (instead of constructing explicit)

kmorcinek opened this issue · comments

Currently everything is constructed in index.ts

ConquerorSpy.historyChecker = new HistoryChecker(
  provinceOwnership,
  new ProvinceHistoryChecker(),
  new FarmHistoryChecker(),
  provinceHistoryService
);

How to use a Dependency Injection Container (or similar concept)?