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
magento2-base
setup
src
Magento
Setup
Module
Di
Code
Scanner
PluginScanner.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Setup\Module\Di\Code\Scanner
;
7
8
class
PluginScanner
implements
ScannerInterface
9
{
16
public
function
collectEntities
(array
$files
)
17
{
18
$pluginClassNames = [];
19
foreach
(
$files
as
$fileName
) {
20
$dom = new \DOMDocument();
21
$dom->loadXML(
file_get_contents
(
$fileName
));
22
$xpath = new \DOMXPath($dom);
24
foreach
($xpath->query(
'//type/plugin|//virtualType/plugin'
) as $node) {
25
$pluginTypeNode = $node->attributes->getNamedItem(
'type'
);
26
if
($pluginTypeNode !==
null
) {
27
$pluginClassNames[] = $pluginTypeNode->nodeValue;
28
}
29
}
30
}
31
return
$pluginClassNames;
32
}
33
}
Magento\Setup\Module\Di\Code\Scanner\ScannerInterface\collectEntities
collectEntities(array $files)
Magento\Setup\Module\Di\Code\Scanner\PluginScanner
Definition:
PluginScanner.php:8
Magento\Setup\Module\Di\Code\Scanner
Definition:
ArrayScanner.php:6
Magento\Setup\Module\Di\Code\Scanner\ScannerInterface
Definition:
ScannerInterface.php:12
$fileName
$fileName
Definition:
translate.phtml:15
Magento\Framework\Filesystem\Driver\file_get_contents
file_get_contents()
Definition:
http_mock.php:15
$files
foreach($appDirs as $dir) $files
Definition:
app_dirs_rollback.php:18