Repository navigation
v1.0.0 - Update Config and Logging logic to use interfaces
Logic has been updated to use IConfigAdapter and ILoggingAdapter interfaces. This allows developers to write their own custom adapters to work with their own stack. By default, local file storage is used via the LocalFileConfigAdapter and LocalFileLoggingAdapter.
- Updated StatsigUser to require either UserID or one or more CustomIDs.
new StatsigUser("an_id")->StatsigUser::withUserID("an_id")(new StatsigUser())->setCustomIDs(["MyCustomID" => "an_id"])->StatsigUser::withCustomIDs(["MyCustomID" => "an_id"])
- Added calls to the network to fetch new ConfigSpecs when the current ConfigSpecs are outdated (older than 1 minute).
- Refactored everything to have consistent naming conventions.
- Added type hints.