Load site settings from dotenv and store OAuth credentials
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Content;
|
||||
|
||||
use App\Config\Environment;
|
||||
use DOMDocument;
|
||||
use DOMElement;
|
||||
use DOMXPath;
|
||||
@@ -84,7 +85,7 @@ final class Media
|
||||
|
||||
public static function directory(): string
|
||||
{
|
||||
return rtrim(getenv('LAYSITE_MEDIA_DIR') ?: dirname(__DIR__, 2) . '/storage/media', '/');
|
||||
return rtrim(Environment::path('LAYSITE_MEDIA_DIR', 'storage/media'), '/');
|
||||
}
|
||||
|
||||
public static function validateBackup(string $path, string $name, string $mime, int $size): void
|
||||
|
||||
Reference in New Issue
Block a user