private function loadDatabases()
	{
		$databaseKeys = $this->config->get('databases:keys')?: [];

		if (!isset($databaseKeys['database'])) $databaseKeys[] = 'database'; // Default database config key

		foreach ($databaseKeys as $databaseKey) {
			$database = $this->config->get($databaseKey);
			if ($database !== false) $this->initConnection($database, $databaseKey);
			$this->config->destroy($databaseKey);
			unset($database);
		}
    }
private function loadDatabases()
	{
		$databaseKeys = $this->config->get('databases:keys')?: [];

		if (!isset($databaseKeys['database'])) $databaseKeys[] = 'database'; // Default database config key

		foreach ($databaseKeys as $databaseKey) {
			$database = $this->config->get($databaseKey);
			if ($database !== false) $this->initConnection($database, $databaseKey);
			$this->config->destroy($databaseKey);
			unset($database);
		}
    }
private function loadDatabases ( ) { $ databaseKeys = $ this -> config -> get ( 'databases:keys' ) ? : [ ] ; if ( ! isset ( $ databaseKeys [ 'database' ] ) ) $ databaseKeys [ ] = 'database' ; // Default database config key
 foreach ( $ databaseKeys as $ databaseKey ) { $ database = $ this -> config -> get ( $ databaseKey ) ; if ( $ database !== false ) $ this -> initConnection ( $ database , $ databaseKey ) ; $ this -> config -> destroy ( $ databaseKey ) ; unset ( $ database ) ; } }
Load the different database connections

@throws PlinthException
Load the different database connections