FeatureGating
Service class that handles the feature flags.
Description Description
Source Source
File: packages/woocommerce-blocks/src/Domain/Services/FeatureGating.php
Methods Methods
- __construct — Constructor
- get_environment — Returns the current environment value.
- get_flag — Returns the current flag value.
- is_development_environment — Checks if we're executing the code in an development environment.
- is_experimental_build — Checks if we're executing the code in an experimental build mode.
- is_feature_plugin_build — Checks if we're executing the code in an feature plugin or experimental build mode.
- is_production_environment — Checks if we're executing the code in a production environment.
- is_test_environment — Checks if we're executing the code in a test environment.
- load_environment — Set correct environment.
- load_flag — Set correct flag.