We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c077c5a + 4ec80d9 commit 7740f05Copy full SHA for 7740f05
examples/index.php
@@ -8,10 +8,9 @@
8
use Slim\Views\TwigMiddleware;
9
10
require_once './vendor/autoload.php';
11
+$env = parse_ini_file('.env');
12
-const API_KEY = getenv('API_KEY');
13
-
14
-$flagsmith = (new Flagsmith(API_KEY))
+$flagsmith = (new Flagsmith($env['API_KEY']))
15
->withDefaultFlagHandler(function ($featureName) {
16
$defaultFlag = (new DefaultFlag())
17
->withEnabled(false)->withValue(null);
0 commit comments