@@ 38-48 (lines=11) @@ | ||
35 | * |
|
36 | * @param array $config |
|
37 | */ |
|
38 | public function __construct(array $config = []) |
|
39 | { |
|
40 | $resolver = new OptionsResolver(); |
|
41 | $resolver->setDefaults([ |
|
42 | 'use_content_encoding' => true, |
|
43 | ]); |
|
44 | $resolver->setAllowedTypes('use_content_encoding', 'bool'); |
|
45 | $options = $resolver->resolve($config); |
|
46 | ||
47 | $this->useContentEncoding = $options['use_content_encoding']; |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * {@inheritdoc} |
@@ 39-49 (lines=11) @@ | ||
36 | * |
|
37 | * @param array $config |
|
38 | */ |
|
39 | public function __construct(array $config = []) |
|
40 | { |
|
41 | $resolver = new OptionsResolver(); |
|
42 | $resolver->setDefaults([ |
|
43 | 'retries' => 1, |
|
44 | ]); |
|
45 | $resolver->setAllowedTypes('retries', 'int'); |
|
46 | $options = $resolver->resolve($config); |
|
47 | ||
48 | $this->retry = $options['retries']; |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * {@inheritdoc} |