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
Console
Command
DependenciesShowModulesCommand.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Setup\Console\Command
;
7
8
use
Magento\Framework\App\Utility\Files
;
9
use
Magento\Framework\Component\ComponentRegistrar
;
10
use
Magento\Setup\Module\Dependency\ServiceLocator
;
11
15
class
DependenciesShowModulesCommand
extends
AbstractDependenciesCommand
16
{
20
protected
function
configure
()
21
{
22
$this->setDescription(
'Shows number of dependencies between modules'
)
23
->setName(
'info:dependencies:show-modules'
);
24
parent::configure();
25
}
26
32
protected
function
getDefaultOutputFilename
()
33
{
34
return
'modules-dependencies.csv'
;
35
}
36
43
protected
function
buildReport
($outputPath)
44
{
45
$filesForParse =
Files::init
()->getComposerFiles(
ComponentRegistrar::MODULE
,
false
);
46
47
ServiceLocator::getDependenciesReportBuilder
()->build(
48
[
49
'parse'
=> [
'files_for_parse'
=> $filesForParse],
50
'write'
=> [
'report_filename'
=> $outputPath],
51
]
52
);
53
}
54
}
Magento\Framework\App\Utility\Files\init
static init()
Definition:
Files.php:147
Magento\Setup\Console\Command\AbstractDependenciesCommand
Definition:
AbstractDependenciesCommand.php:23
Magento\Setup\Console\Command\DependenciesShowModulesCommand\getDefaultOutputFilename
getDefaultOutputFilename()
Definition:
DependenciesShowModulesCommand.php:32
Magento\Setup\Console\Command\DependenciesShowModulesCommand
Definition:
DependenciesShowModulesCommand.php:15
Magento\Setup\Console\Command\DependenciesShowModulesCommand\configure
configure()
Definition:
DependenciesShowModulesCommand.php:20
Magento\Setup\Module\Dependency\ServiceLocator\getDependenciesReportBuilder
static getDependenciesReportBuilder()
Definition:
ServiceLocator.php:76
Magento\Framework\App\Utility\Files
Definition:
Files.php:21
Magento\Setup\Console\Command\DependenciesShowModulesCommand\buildReport
buildReport($outputPath)
Definition:
DependenciesShowModulesCommand.php:43
Magento\Framework\Component\ComponentRegistrar\MODULE
const MODULE
Definition:
ComponentRegistrar.php:21
Magento\Setup\Console\Command
Definition:
DependenciesShowFrameworkCommandTest.php:6
Magento\Setup\Module\Dependency\ServiceLocator
Definition:
ServiceLocator.php:20
Magento\Framework\Component\ComponentRegistrar
Definition:
ComponentRegistrar.php:16