systemConfigService->getString('AeonDumpManager.config.dumpBinaryName'); $binaryNames = $configuredName !== '' ? [$configuredName] : ($this->isMariaDb() ? ['mariadb-dump', 'mysqldump'] : ['mysqldump']); foreach ($binaryNames as $binaryName) { $path = $this->executableFinder->find($binaryName); if ($path !== null) { return $path; } } throw DumpBinaryNotFoundException::create($binaryNames); } private function isMariaDb(): bool { // Connection::getServerVersion() is private in the DBAL version this // repo pins against — SELECT VERSION() is the stable public way to get // the same string. return MySqlVariant::isMariaDb((string) $this->connection->fetchOne('SELECT VERSION()')); } }