36 lines
1005 B
PHP
36 lines
1005 B
PHP
<?php
|
|
|
|
/**
|
|
* Configuration simplifiée pour les scripts de migration
|
|
* Fournit les clés de chiffrement et autres paramètres nécessaires
|
|
* sans dépendre des en-têtes HTTP
|
|
*/
|
|
class AppConfig {
|
|
private static ?self $instance = null;
|
|
|
|
// Configuration spécifique pour la migration
|
|
private array $config = [
|
|
'encryption_key' => 'Qga2M8Ov6tyx2fIQRWHQ1U6oMK/bAFdTL7A8VRtiDhk=', // Clé de GeoSector
|
|
'app_identifier' => 'geosector', // Identifiant de l'application
|
|
];
|
|
|
|
private function __construct() {
|
|
// Constructeur simplifié sans validation d'application
|
|
}
|
|
|
|
public static function getInstance(): self {
|
|
if (self::$instance === null) {
|
|
self::$instance = new self();
|
|
}
|
|
return self::$instance;
|
|
}
|
|
|
|
public function getEncryptionKey(): string {
|
|
return $this->config['encryption_key'];
|
|
}
|
|
|
|
public function getAppIdentifier(): string {
|
|
return $this->config['app_identifier'];
|
|
}
|
|
}
|