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
DependenciesShowModulesCircularCommand.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
DependenciesShowModulesCircularCommand
extends
AbstractDependenciesCommand
16
{
20
protected
function
configure
()
21
{
22
$this->setDescription(
'Shows number of circular dependencies between modules'
)
23
->setName(
'info:dependencies:show-modules-circular'
);
24
parent::configure();
25
}
26
32
protected
function
getDefaultOutputFilename
()
33
{
34
return
'modules-circular-dependencies.csv'
;
35
}
36
43
protected
function
buildReport
($outputPath)
44
{
45
$filesForParse =
Files::init
()->getComposerFiles(
ComponentRegistrar::MODULE
,
false
);
46
47
asort($filesForParse);
48
ServiceLocator::getCircularDependenciesReportBuilder
()->build(
49
[
50
'parse'
=> [
'files_for_parse'
=> $filesForParse],
51
'write'
=> [
'report_filename'
=> $outputPath],
52
]
53
);
54
}
55
}
Magento\Framework\App\Utility\Files\init
static init()
Definition:
Files.php:147
Magento\Setup\Console\Command\DependenciesShowModulesCircularCommand\getDefaultOutputFilename
getDefaultOutputFilename()
Definition:
DependenciesShowModulesCircularCommand.php:32
Magento\Setup\Console\Command\AbstractDependenciesCommand
Definition:
AbstractDependenciesCommand.php:23
Magento\Framework\App\Utility\Files
Definition:
Files.php:21
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\Setup\Module\Dependency\ServiceLocator\getCircularDependenciesReportBuilder
static getCircularDependenciesReportBuilder()
Definition:
ServiceLocator.php:92
Magento\Framework\Component\ComponentRegistrar
Definition:
ComponentRegistrar.php:16
Magento\Setup\Console\Command\DependenciesShowModulesCircularCommand
Definition:
DependenciesShowModulesCircularCommand.php:15
Magento\Setup\Console\Command\DependenciesShowModulesCircularCommand\configure
configure()
Definition:
DependenciesShowModulesCircularCommand.php:20
Magento\Setup\Console\Command\DependenciesShowModulesCircularCommand\buildReport
buildReport($outputPath)
Definition:
DependenciesShowModulesCircularCommand.php:43