Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Reader.php
Go to the documentation of this file.
1 <?php
8 
13 {
17  private $envConfig;
18 
22  public function __construct(\Magento\Framework\MessageQueue\Config\Reader\Env $envConfig)
23  {
24  $this->envConfig = $envConfig;
25  }
26 
33  public function read($scope = null)
34  {
35  $configData = $this->envConfig->read($scope);
36  return isset($configData[\Magento\Framework\MessageQueue\Config\Reader\Env::ENV_CONSUMERS])
37  ? $configData[\Magento\Framework\MessageQueue\Config\Reader\Env::ENV_CONSUMERS]
38  : [];
39  }
40 }
__construct(\Magento\Framework\MessageQueue\Config\Reader\Env $envConfig)
Definition: Reader.php:22