Created
April 19, 2022 14:59
-
-
Save yatsenkolesh/0be7838098a5fc8541d6335f1f14cbed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
namespace App\Http\Controllers; | |
use Abrouter\Client\Client; | |
class ExampleFeatureFlagsController | |
{ | |
public function __invoke(Client $client) | |
{ | |
$enabledButtonFeatureFlag = $client->featureFlags() | |
->run('enabled_button_feature_flag'); | |
$disabledButtonFeatureFlag = $client->featureFlags() | |
->run('disabled_button_feature_flag'); | |
return view('featureFlags', ['enabledButtonFeatureFlag' => $enabledButtonFeatureFlag, 'disabledButtonFeatureFlag' => $disabledButtonFeatureFlag, ]); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment