Core logic operates in a singleton pattern. However, no logic should be running at the root of the module and should be contained in a function or class. Since core modules depend on others, they should be contained in class. To manage instances, TSyringe must be used for IoC.
Description
Core logic operates in a singleton pattern. However, no logic should be running at the root of the module and should be contained in a function or class. Since core modules depend on others, they should be contained in class. To manage instances, TSyringe must be used for IoC.