Skip to content

Commit

Permalink
Add download attempts option (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin255 authored Jul 22, 2021
1 parent 6215712 commit cf833bd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ public function getConfigTreeBuilder(): TreeBuilder
->end()
->defaultValue([])
->end()
->arrayNode('download_curl_settings')
->useAttributeAsKey('name')
->prototype('scalar')
->end()
->defaultValue([])
->end()
->scalarNode('download_retry_attempts')
->defaultValue(10)
->end()
->booleanNode('elasticsearch_enable')
->defaultValue(false)
->end()
Expand Down
3 changes: 3 additions & 0 deletions Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ services:

liquetsoft_fias.downloader.service:
class: Liquetsoft\Fias\Component\Downloader\CurlDownloader
arguments:
- '%liquetsoft_fias.download_curl_settings%'
- '%liquetsoft_fias.download_retry_attempts%'

Liquetsoft\Fias\Component\Downloader\Downloader:
alias: liquetsoft_fias.downloader.service
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"require": {
"php": ">=7.4",
"liquetsoft/fias-component": "^9.0",
"liquetsoft/fias-component": "^9.1",
"symfony/framework-bundle": "^5.0",
"doctrine/doctrine-bundle": "^2.0",
"doctrine/orm": "^2.4",
Expand Down

0 comments on commit cf833bd

Please sign in to comment.