-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it possible to export container dependant variables
This patch introduces the initialize function inside a module, this function is called with the root container of the application at application startup. This enables the logger module to export a logger object fetched via container.get<ILogger>(ILogger) such that this new logger object can be exported to code that does not use injection. Signed-off-by: Antoine Tremblay <antoine.tremblay@ericsson.com>
- Loading branch information
Antoine Tremblay
committed
Sep 25, 2017
1 parent
61c9513
commit c720ad4
Showing
3 changed files
with
24 additions
and
8 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