From 5d776a747cc93cc3b6b3ef07ad3507b02c0e615b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 21 Jul 2023 17:25:27 +0200 Subject: [PATCH] Fix: Code examples --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 692f26d4..6f9d1610 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,10 @@ php composer.phar require optimizely/optimizely-sdk Create the Optimizely client, for example: ```php +>); ``` @@ -56,12 +60,22 @@ $optimizelyClient = OptimizelyFactory::createDefaultInstance( To access your HTTPProjectConfigManager: ```php +configManager; ``` Or you can also provide an implementation of the [`ProjectConfigManagerInterface`](https://github.com/optimizely/php-sdk/blob/master/src/Optimizely/ProjectConfigManager/ProjectConfigManagerInterface.php) in the constructor: ```php +>); $optimizely = new Optimizely( <>, @@ -90,6 +104,10 @@ Calling `fetch` will update the internal ProjectConfig instance that will be ret ### Use HTTPProjectConfigManager ```php +>); ```