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
CompositeScanner.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Setup\Module\Di\Code\Scanner
;
7
8
class
CompositeScanner
implements
ScannerInterface
9
{
13
protected
$_children
= [];
14
22
public
function
addChild
(
ScannerInterface
$scanner,
$type
)
23
{
24
$this->_children[
$type
] = $scanner;
25
}
26
33
public
function
collectEntities
(array
$files
)
34
{
35
$output
= [];
36
foreach
($this->_children as
$type
=> $scanner) {
37
if
(!isset(
$files
[
$type
]) || !is_array(
$files
[
$type
])) {
38
continue
;
39
}
40
$output
[
$type
] = array_unique($scanner->collectEntities(
$files
[
$type
]));
41
}
42
return
$output
;
43
}
44
}
Magento\Setup\Module\Di\Code\Scanner\CompositeScanner\$_children
$_children
Definition:
CompositeScanner.php:13
Magento\Setup\Module\Di\Code\Scanner
Definition:
ArrayScanner.php:6
Magento\Setup\Module\Di\Code\Scanner\ScannerInterface
Definition:
ScannerInterface.php:12
$type
$type
Definition:
item.phtml:13
$output
$output
Definition:
classmap_generator.php:100
Magento\Setup\Module\Di\Code\Scanner\CompositeScanner\addChild
addChild(ScannerInterface $scanner, $type)
Definition:
CompositeScanner.php:22
Magento\Setup\Module\Di\Code\Scanner\CompositeScanner
Definition:
CompositeScanner.php:8
$files
foreach($appDirs as $dir) $files
Definition:
app_dirs_rollback.php:18
Magento\Setup\Module\Di\Code\Scanner\CompositeScanner\collectEntities
collectEntities(array $files)
Definition:
CompositeScanner.php:33