From 2d65b4d51bfb5af9c7af10c6c803137544017092 Mon Sep 17 00:00:00 2001 From: Steven Ngesera Date: Thu, 18 Apr 2024 21:28:00 +0300 Subject: [PATCH] Remplace TM_ prefix with CYPHT_ --- lib/environment.php | 4 ++-- tests/phpunit/environment.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/environment.php b/lib/environment.php index ce91136d37..c580516bd9 100644 --- a/lib/environment.php +++ b/lib/environment.php @@ -30,7 +30,7 @@ public function load() { return; } - $envFile = static::get('TM_DOTENV'); + $envFile = static::get('CYPHT_DOTENV'); $dotenvLoader->load($envDistFile); if ($envFile) { $dotenvLoader->loadEnv($envFile); @@ -47,7 +47,7 @@ public static function get($key, $defaultValue = null) { * Sets required environment variables that are used within .env files */ private function set_required_environment_variables() { - $_ENV['TM_DOTENV'] = APP_PATH . '.env'; + $_ENV['CYPHT_DOTENV'] = APP_PATH . '.env'; } /** diff --git a/tests/phpunit/environment.php b/tests/phpunit/environment.php index e107f81d83..4c67c76a8d 100644 --- a/tests/phpunit/environment.php +++ b/tests/phpunit/environment.php @@ -18,8 +18,8 @@ public function setUp(): void { public function test_get() { $environment = Hm_Environment::getInstance(); $environment->load(); - $tm_dotenv = $environment->get('TM_DOTENV'); - $this->assertStringEndsWith(".env", $tm_dotenv); + $cypht_dotenv = $environment->get('CYPHT_DOTENV'); + $this->assertStringEndsWith(".env", $cypht_dotenv); } /**