Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Communication
Config
Reader
EnvReader.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Communication\Config\Reader
;
7
8
use
Magento\Framework\Communication\Config\Reader\EnvReader\Validator
;
9
use
Magento\Framework\App\DeploymentConfig
;
10
14
class
EnvReader
implements
\Magento\Framework\Config\ReaderInterface
15
{
16
const
ENV_COMMUNICATION
=
'communication'
;
17
21
private
$deploymentConfig;
22
26
private
$envValidator;
27
32
public
function
__construct
(
33
DeploymentConfig
$deploymentConfig,
34
Validator
$envValidator
35
) {
36
$this->deploymentConfig =
$deploymentConfig
;
37
$this->envValidator = $envValidator;
38
}
39
47
public
function
read
($scope =
null
)
48
{
49
$configData
= $this->deploymentConfig->getConfigData(self::ENV_COMMUNICATION);
50
if
(
$configData
) {
51
$this->envValidator->validate(
$configData
);
52
}
53
return
$configData
?: [];
54
}
55
}
Magento\Framework\Communication\Config\Reader
Magento\Framework\Communication\Config\Reader\EnvReader
Definition:
EnvReader.php:14
Magento\Framework\Communication\Config\Reader\EnvReader\read
read($scope=null)
Definition:
EnvReader.php:47
Magento\Framework\App\DeploymentConfig
Definition:
DeploymentConfig.php:17
Magento\Framework\Communication\Config\Reader\EnvReader\__construct
__construct(DeploymentConfig $deploymentConfig, Validator $envValidator)
Definition:
EnvReader.php:32
Magento\Framework\Communication\Config\Reader\EnvReader\ENV_COMMUNICATION
const ENV_COMMUNICATION
Definition:
EnvReader.php:16
$deploymentConfig
$deploymentConfig
Definition:
health_check.php:18
Magento\Framework\Config\ReaderInterface
Definition:
ReaderInterface.php:16
$configData
$configData
Definition:
payment_configuration.php:26
Magento\Framework\Communication\Config\Reader\EnvReader\Validator
Definition:
Validator.php:17
Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricing\Validator
Definition:
TierPrice.php:6
Magento\Framework\App\DeploymentConfig
Definition:
CommentParser.php:6