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
ServiceDataAttributesScanner.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Setup\Module\Di\Code\Scanner
;
7
11
class
ServiceDataAttributesScanner
implements
ScannerInterface
12
{
19
public
function
collectEntities
(array
$files
)
20
{
21
$extensionClasses = [];
22
foreach
(
$files
as
$fileName
) {
23
$dom = new \DOMDocument();
24
$dom->loadXML(
file_get_contents
(
$fileName
));
25
$xpath = new \DOMXPath($dom);
27
foreach
($xpath->query(
'//extension_attributes'
) as $node) {
28
$forType = $node->attributes->getNamedItem(
'for'
)->nodeValue;
29
$extensionClasses[] = str_replace(
'Interface'
,
'ExtensionInterface'
, $forType);
30
$extensionClasses[] = str_replace(
'Interface'
,
'Extension'
, $forType);
31
}
32
}
33
return
$extensionClasses;
34
}
35
}
Magento\Setup\Module\Di\Code\Scanner\ServiceDataAttributesScanner
Definition:
ServiceDataAttributesScanner.php:11
Magento\Setup\Module\Di\Code\Scanner\ScannerInterface\collectEntities
collectEntities(array $files)
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