CheckoutFieldsSchema
11 months ago
Email
1 year ago
CheckoutFields.php
11 months ago
CheckoutFieldsAdmin.php
2 years ago
CheckoutFieldsFrontend.php
11 months ago
CheckoutLink.php
11 months ago
CreateAccount.php
1 year ago
DraftOrders.php
2 months ago
FeatureGating.php
1 year ago
GoogleAnalytics.php
2 years ago
Hydration.php
5 months ago
Notices.php
1 year ago
functions.php
2 years ago
FeatureGating.php
30 lines
| 1 | <?php |
| 2 | namespace Automattic\WooCommerce\Blocks\Domain\Services; |
| 3 | |
| 4 | use Automattic\WooCommerce\Admin\DeprecatedClassFacade; |
| 5 | |
| 6 | /** |
| 7 | * Service class that used to handle feature flags. That functionality |
| 8 | * is removed now and it is only used to determine "environment". |
| 9 | * |
| 10 | * @internal |
| 11 | * |
| 12 | * @deprecated since 9.6.0, use wp_get_environment_type() instead. |
| 13 | */ |
| 14 | class FeatureGating extends DeprecatedClassFacade { |
| 15 | /** |
| 16 | * The version that this class was deprecated in. |
| 17 | * |
| 18 | * @var string |
| 19 | */ |
| 20 | protected static $deprecated_in_version = '9.6.0'; |
| 21 | |
| 22 | /** |
| 23 | * Constructor |
| 24 | * |
| 25 | * @param string $environment Hardcoded environment value. Useful for tests. |
| 26 | */ |
| 27 | public function __construct( $environment = 'unset' ) { |
| 28 | } |
| 29 | } |
| 30 |