Skip to content

Commit

Permalink
Fix liquetsoft:fias:truncate running command
Browse files Browse the repository at this point in the history
  • Loading branch information
liquetsoft committed Sep 11, 2024
1 parent 88c4021 commit c133f0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/Config/liquetsoft_fias.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
* Использовать или нет миграции из состава бандла.
*/
'allow_bundle_migrations' => true,
/*
* Ссылка на WSDL сервиса, который возвращает ссылки на архив с ФИАС для указанных версий.
*/
'informer_wsdl' => 'http://fias.nalog.ru/WebServices/Public/DownloadService.asmx?WSDL',
/*
* Путь к yaml файлу с описаниями сущностей ФИАС. null - использовать по умолчанию.
*/
Expand Down
7 changes: 6 additions & 1 deletion src/LiquetsoftFiasBundleServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,12 @@ private function registerServices(array &$servicesList): void
$servicesList[FiasStatusChecker::class] = FiasStatusCheckerImpl::class;

// объект, который загружает файлы
$servicesList[Downloader::class] = DownloaderImpl::class;
$servicesList[Downloader::class] = function (Application $app): Downloader {
return new DownloaderImpl(
$app->get(HttpTransport::class),
$this->getOptionInt('download_retry_attempts')
);
};

// объект, который распаковывает архивы
$servicesList[Unpacker::class] = ZipUnpacker::class;
Expand Down

0 comments on commit c133f0a

Please sign in to comment.