require_once dbstructure.config.php for HTTPClientFactory.php in case we didn't load the DB

This commit is contained in:
Philipp Holzer 2021-10-18 19:36:56 +02:00
parent 1dc613a0a1
commit 493b428991
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432

View file

@ -5,10 +5,8 @@ namespace Friendica\Factory;
use Friendica\App; use Friendica\App;
use Friendica\BaseFactory; use Friendica\BaseFactory;
use Friendica\Core\Config\IConfig; use Friendica\Core\Config\IConfig;
use Friendica\Core\System;
use Friendica\Network\HTTPClient; use Friendica\Network\HTTPClient;
use Friendica\Network\IHTTPClient; use Friendica\Network\IHTTPClient;
use Friendica\Util\Crypto;
use Friendica\Util\Profiler; use Friendica\Util\Profiler;
use Friendica\Util\Strings; use Friendica\Util\Strings;
use GuzzleHttp\Client; use GuzzleHttp\Client;
@ -20,6 +18,8 @@ use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\UriInterface; use Psr\Http\Message\UriInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
require_once __DIR__ . '/../../static/dbstructure.config.php';
class HTTPClientFactory extends BaseFactory class HTTPClientFactory extends BaseFactory
{ {
/** @var IConfig */ /** @var IConfig */