Ajout du dossier api avec la géolocalisation automatique des casernes de pompiers
This commit is contained in:
35
api/scripts/php/MigrationConfig.php
Normal file
35
api/scripts/php/MigrationConfig.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user