Skip to content

Commit

Permalink
Merge pull request #967 from Shadow243/remove-tm-prefix
Browse files Browse the repository at this point in the history
Remplace TM_ prefix with CYPHT_
  • Loading branch information
Shadow243 authored Apr 18, 2024
2 parents b93c2c9 + 2d65b4d commit 07710bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 07710bb

Please sign in to comment.