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
DependenciesShowFrameworkCommand.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\Framework\Component\ComponentRegistrarInterface
;
11
use
Magento\Setup\Model\ObjectManagerProvider
;
12
use
Magento\Setup\Module\Dependency\ServiceLocator
;
13
17
class
DependenciesShowFrameworkCommand
extends
AbstractDependenciesCommand
18
{
22
private
$registrar;
23
30
public
function
__construct
(
ComponentRegistrarInterface
$registrar,
ObjectManagerProvider
$objectManagerProvider)
31
{
32
$this->registrar =
$registrar
;
33
parent::__construct($objectManagerProvider);
34
}
35
39
protected
function
configure
()
40
{
41
$this->setDescription(
'Shows number of dependencies on Magento framework'
)
42
->setName(
'info:dependencies:show-framework'
);
43
parent::configure();
44
}
45
51
protected
function
getDefaultOutputFilename
()
52
{
53
return
'framework-dependencies.csv'
;
54
}
55
62
protected
function
buildReport
($outputPath)
63
{
64
$filePaths = $this->registrar->getPaths(
ComponentRegistrar::MODULE
);
65
66
$filesForParse =
Files::init
()->getFiles($filePaths,
'*'
);
67
$configFiles =
Files::init
()->getConfigFiles(
'module.xml'
, [],
false
);
68
69
ServiceLocator::getFrameworkDependenciesReportBuilder
()->build(
70
[
71
'parse'
=> [
72
'files_for_parse'
=> $filesForParse,
73
'config_files'
=> $configFiles,
74
'declared_namespaces'
=>
Files::init
()->getNamespaces(),
75
],
76
'write'
=> [
'report_filename'
=> $outputPath],
77
]
78
);
79
}
80
}
Magento\Setup\Console\Command\DependenciesShowFrameworkCommand\getDefaultOutputFilename
getDefaultOutputFilename()
Definition:
DependenciesShowFrameworkCommand.php:51
Magento\Setup\Model\ObjectManagerProvider
Definition:
ObjectManagerProvider.php:22
Magento\Framework\App\Utility\Files\init
static init()
Definition:
Files.php:147
Magento\Setup\Console\Command\DependenciesShowFrameworkCommand\buildReport
buildReport($outputPath)
Definition:
DependenciesShowFrameworkCommand.php:62
Magento\Setup\Console\Command\AbstractDependenciesCommand
Definition:
AbstractDependenciesCommand.php:23
Magento\Framework\App\Utility\Files
Definition:
Files.php:21
Magento\Setup\Module\Dependency\ServiceLocator\getFrameworkDependenciesReportBuilder
static getFrameworkDependenciesReportBuilder()
Definition:
ServiceLocator.php:109
Magento\Setup\Console\Command\DependenciesShowFrameworkCommand\configure
configure()
Definition:
DependenciesShowFrameworkCommand.php:39
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
$registrar
$registrar
Definition:
registration.php:9
Magento\Framework\Component\ComponentRegistrarInterface
Definition:
ComponentRegistrarInterface.php:11
Magento\Framework\Component\ComponentRegistrar
Definition:
ComponentRegistrar.php:16
Magento\Setup\Console\Command\DependenciesShowFrameworkCommand
Definition:
DependenciesShowFrameworkCommand.php:17
Magento\Setup\Console\Command\DependenciesShowFrameworkCommand\__construct
__construct(ComponentRegistrarInterface $registrar, ObjectManagerProvider $objectManagerProvider)
Definition:
DependenciesShowFrameworkCommand.php:30