Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Why use constructors in service files?
This PR is opened in the form of a question. Why are constructors used at all in the singleton module services? It's awkward that something is exported initialized. If the constructor were exported, I could see it being useful for testing and reusability, but right now it's just an object serving as a layer of indirection.
- Loading branch information
Showing
3 changed files
with
25 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters