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