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
Arguments
FileResolver
Primary.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\App\Arguments\FileResolver
;
9
10
use
Magento\Framework\App\Filesystem\DirectoryList
;
11
12
class
Primary
implements
\Magento\Framework\Config\FileResolverInterface
13
{
17
protected
$configDirectory
;
18
22
protected
$iteratorFactory
;
23
28
public
function
__construct
(
29
\
Magento
\Framework\
Filesystem
$filesystem
,
30
\
Magento
\Framework\
Config
\FileIteratorFactory
$iteratorFactory
31
) {
32
$this->configDirectory =
$filesystem
->getDirectoryRead(
DirectoryList::CONFIG
);
33
$this->iteratorFactory =
$iteratorFactory
;
34
}
35
40
public
function
get
($filename, $scope)
41
{
42
$configPaths = $this->configDirectory->search(
'{*'
. $filename .
',*/*'
. $filename .
'}'
);
43
$configAbsolutePaths = [];
44
foreach
($configPaths as $configPath) {
45
$configAbsolutePaths[] = $this->configDirectory->getAbsolutePath($configPath);
46
}
47
return
$this->iteratorFactory->create($configAbsolutePaths);
48
}
49
}
Magento\Framework\App\Arguments\FileResolver\Primary\__construct
__construct(\Magento\Framework\Filesystem $filesystem, \Magento\Framework\Config\FileIteratorFactory $iteratorFactory)
Definition:
Primary.php:28
Magento\Framework\Filesystem
Definition:
Filesystem.php:16
Magento\Framework\App\Filesystem\DirectoryList\CONFIG
const CONFIG
Definition:
DirectoryList.php:28
Magento\Framework\App\Arguments\FileResolver\Primary\$configDirectory
$configDirectory
Definition:
Primary.php:17
Magento\Framework\App\Arguments\FileResolver\Primary\$iteratorFactory
$iteratorFactory
Definition:
Primary.php:22
Magento\Framework\App\Arguments\FileResolver
Definition:
Primary.php:8
Magento\Framework\App\Arguments\FileResolver\Primary
Definition:
Primary.php:12
Magento
Magento\Framework\App\Filesystem\DirectoryList
Definition:
DirectoryList.php:13
Magento\Framework\Config\FileResolverInterface
Definition:
FileResolverInterface.php:14
Magento\Framework\App\Config
Definition:
Config.php:17
$filesystem
$filesystem
Definition:
validate_image.php:10