-
Notifications
You must be signed in to change notification settings - Fork 30
docs: Add steps for sdk key init #193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest looks good to me. please fix nits.
README.md
Outdated
@@ -32,7 +32,17 @@ Create the Optimizely client, for example: | |||
$optimizely = new Optimizely(<<DATAFILE>>); | |||
``` | |||
|
|||
You can also provide an implementation of the `ProjectConfigManagerInterface` in the constructor: | |||
Or you may also use OptimizelyFactory method to create an optimizely client using your SDK key and an optional fallback datafile. Using this method internally creates an HTTPProjectConfigManager. See HTTPProjectConfigManager for further detail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please link HTTPProjectConfigManager
to actual github file.
README.md
Outdated
``` | ||
$optimizelyClient = OptimizelyFactory::createDefaultInstance("your-sdk-key", <<DATAFILE>>); | ||
``` | ||
// access your HTTPProjectConfigManager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's typo, should come under coding panel.
README.md
Outdated
$configManager = $optimizelyClient->configManager; | ||
``` | ||
|
||
Or you can also provide an implementation of the `ProjectConfigManagerInterface` in the constructor: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please link ProjectConfigManagerInterface
to actual github file.
Summary
This updates readme for factory method introduced in #189
Test plan
All checks continue to pass.
Issues