mirror of
https://github.com/MetaProvide/nextcloud-swarm-plugin.git
synced 2025-02-12 03:59:38 +00:00
17 lines
347 B
PHP
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');
|
|
}
|
|
}
|