From f7916cf70b5fbd7dec71b0da87cf05d92c659458 Mon Sep 17 00:00:00 2001 From: gcch Date: Wed, 30 Oct 2024 21:24:36 +0100 Subject: [PATCH] =?UTF-8?q?ref(env)=20ajoute=20les=20variables=20d'environ?= =?UTF-8?q?nement=20pour=20la=20cl=C3=A9=20REST=20WC=20=C3=A0=20l'environn?= =?UTF-8?q?ement=20staging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/environments/staging.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/config/environments/staging.php b/config/environments/staging.php index fc77fe05..a841a0f3 100644 --- a/config/environments/staging.php +++ b/config/environments/staging.php @@ -6,14 +6,8 @@ declare(strict_types=1); use Roots\WPConfig\Config; - -/** - * You should try to keep staging as close to production as possible. However, - * should you need to, you can always override production configuration values - * with `Config::define`. - * - * Example: `Config::define('WP_DEBUG', true);` - * Example: `Config::define('DISALLOW_FILE_MODS', false);` - */ +use function Env\env; Config::define("DISALLOW_INDEXING", true); +Config::define("WOOCOMMERCE_API_CONSUMER_KEY", env("WOOCOMMERCE_API_CONSUMER_KEY")); +Config::define("WOOCOMMERCE_API_CONSUMER_SECRET", env("WOOCOMMERCE_API_CONSUMER_SECRET"));