9
9
namespace Magento \WebapiAsync \Code \Generator \Config \RemoteServiceReader ;
10
10
11
11
use Magento \AsynchronousOperations \Model \ConfigInterface as WebApiAsyncConfig ;
12
- use Magento \Framework \App \ObjectManager ;
13
- use Magento \Framework \MessageQueue \DefaultValueProvider ;
14
12
15
13
/**
16
14
* Remote service reader with auto generated configuration for queue_publisher.xml
@@ -22,26 +20,15 @@ class Publisher implements \Magento\Framework\Config\ReaderInterface
22
20
*/
23
21
private $ webapiAsyncConfig ;
24
22
25
- /**
26
- * Default value provider.
27
- *
28
- * @var DefaultValueProvider
29
- */
30
- private $ defaultValueProvider ;
31
-
32
23
/**
33
24
* Initialize dependencies.
34
25
*
35
26
* @param WebApiAsyncConfig $webapiAsyncConfig
36
- * @param DefaultValueProvider|null $defaultValueProvider
37
27
*/
38
28
public function __construct (
39
- WebApiAsyncConfig $ webapiAsyncConfig ,
40
- DefaultValueProvider $ defaultValueProvider = null
29
+ WebApiAsyncConfig $ webapiAsyncConfig
41
30
) {
42
31
$ this ->webapiAsyncConfig = $ webapiAsyncConfig ;
43
- $ this ->defaultValueProvider = $ defaultValueProvider
44
- ?? ObjectManager::getInstance ()->get (DefaultValueProvider::class);
45
32
}
46
33
47
34
/**
@@ -62,8 +49,8 @@ public function read($scope = null)
62
49
'topic ' => $ topicName ,
63
50
'disabled ' => false ,
64
51
'connections ' => [
65
- $ this -> defaultValueProvider -> getConnection () => [
66
- 'name ' => $ this -> defaultValueProvider -> getConnection () ,
52
+ ' amqp ' => [
53
+ 'name ' => ' amqp ' ,
67
54
'exchange ' => 'magento ' ,
68
55
'disabled ' => false ,
69
56
],
0 commit comments