http-driver.php: rename to HttpDriver

This commit is contained in:
Zankaria
2024-10-04 01:01:47 +02:00
parent 3eed312b6b
commit 1682272f75
2 changed files with 6 additions and 3 deletions

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');