Last active
March 6, 2023 16:37
-
-
Save ismail1432/560c07c38d0d589e21b5eefd29034ab7 to your computer and use it in GitHub Desktop.
Revisions
-
ismail1432 revised this gist
Mar 6, 2023 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,30 +8,30 @@ public static function names() return array_column(self::cases(), 'name'); } } // feature flag to resolve in a database enum DatabaseStorageFeatureFlagEnum { use FeatureFlagEnumTrait; case fake_payment; case new_checkout_api; } // feature flag to resolve with A/B testing enum ABTestingFeatureFlagEnum { use FeatureFlagEnumTrait; case pay_with_paypal; } // feature flag to resolve with Symfony parameters enum ParameterFeatureFlagEnum { use FeatureFlagEnumTrait; case use_stripe; case product_v2; } // feature flag to resolve with a period enum PeriodFeatureFlagEnum { use FeatureFlagEnumTrait; -
ismail1432 created this gist
Mar 6, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,40 @@ <?php namespace App\FeatureFlag\FeatureFlagEnum; trait FeatureFlagEnumTrait { public static function names() { return array_column(self::cases(), 'name'); } } enum DatabaseStorageFeatureFlagEnum { use FeatureFlagEnumTrait; case fake_payment; case new_checkout_api; } enum ABTestingFeatureFlagEnum { use FeatureFlagEnumTrait; case pay_with_paypal; } enum ParameterFeatureFlagEnum { use FeatureFlagEnumTrait; case use_stripe; case product_v2; } enum PeriodFeatureFlagEnum { use FeatureFlagEnumTrait; case maintenance; }