http-driver.php: rename to HttpDriver

This commit is contained in:
Zankaria committed 2024-10-04 01:13:15 +02:00
1 parent 3eed312b6b
commit 1682272f75
2 files changed
+6 -3

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ namespace Vichan;
use RuntimeException;
use Vichan\Driver\{Log, LogDrivers};
use Vichan\Data\Driver\{HttpDriver, HttpDrivers};
use Vichan\Data\Driver\HttpDriver;
use Vichan\Service\HCaptchaQuery;
use Vichan\Service\NativeCaptchaQuery;
use Vichan\Service\ReCaptchaQuery;
@@ -57,7 +57,7 @@ function build_context(array $config): Context {
},
HttpDriver::class => function($c) {
$config = $c->get('config');
return HttpDrivers::getHttpDriver($config['upload_by_url_timeout'], $config['max_filesize']);
return new HttpDriver($config['upload_by_url_timeout'], $config['max_filesize']);
},
RemoteCaptchaQuery::class => function($c) {
$config = $c->get('config');