nextcloud-swarm-plugin/lib/Utils/Env.php
2025-01-15 18:11:47 +01:00

17 lines
347 B
PHP

<?php
namespace OCA\Files_External_Ethswarm\Utils;
class Env {
public static function get(string $name): string {
return getenv($name);
}
public static function set(string $name, string $value): bool {
return putenv($name.'='.$value);
}
public static function isDevelopment(): bool {
return 'development' === self::get('ENV');
}
}