Initialize the singleton-vault early in init()
Summary:
Initialize the singleton-vault early in `init()` to avoid ordering problems with other parts of `init()`.
Initialization is done by calling `SingletonVault::singleton()->registrationComplete()`. Do that before (almost) everything, in particular, before parsing args and initializing logging.
Note that this just marks it okay for singletons to be instantiated, but does not by itself instantiate any singletons. However, this is useful if, in some way, parsing args or initializing logging should happen to use singletons.
Reviewed By: andriigrynenko
Differential Revision:
D4889777
fbshipit-source-id:
6817db22d38a498cd20e361fc574a146029432ec