Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DependenciesShowModulesCommand.php
Go to the documentation of this file.
1 <?php
7 
11 
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 
48  [
49  'parse' => ['files_for_parse' => $filesForParse],
50  'write' => ['report_filename' => $outputPath],
51  ]
52  );
53  }
54 }