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
App
Config
InitialConfigSource.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\App\Config
;
7
8
use
Magento\Framework\App\DeploymentConfig\Reader
;
9
use
Magento\Framework\DataObject
;
10
14
class
InitialConfigSource
implements
ConfigSourceInterface
15
{
19
private
$reader;
20
24
private
$configType;
25
30
private
$fileKey;
31
39
public
function
__construct
(
Reader
$reader, $configType, $fileKey =
null
)
40
{
41
$this->reader = $reader;
42
$this->configType = $configType;
43
$this->fileKey = $fileKey;
44
}
45
49
public
function
get
(
$path
=
''
)
50
{
51
$data
=
new
DataObject
($this->reader->load());
52
if
(
$path
!==
''
&&
$path
!==
null
) {
53
$path
=
'/'
.
$path
;
54
}
55
return
$data
->getData($this->configType .
$path
) ?: [];
56
}
57
}
Magento\Framework\App\DeploymentConfig\Reader
Definition:
Reader.php:22
Magento\Framework\App\Config
Definition:
Base.php:9
Magento\Framework\App\Config\InitialConfigSource\__construct
__construct(Reader $reader, $configType, $fileKey=null)
Definition:
InitialConfigSource.php:39
Magento\Framework\App\Config\ConfigSourceInterface
Definition:
ConfigSourceInterface.php:13
Magento\Framework\DataObject
Definition:
DataObject.php:15
Magento\Framework\App\Config\InitialConfigSource
Definition:
InitialConfigSource.php:14
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
$path
$path
Definition:
import_with_filesystem_images.php:14
Magento\Framework\DataObject
Definition:
Cache.php:6