Пример #1
0
 protected function configure()
 {
     $this->setName('analyze')->setDescription('Run the analyzer on the provided sources')->addOption('report', NULL, InputOption::VALUE_REQUIRED, 'Write report to file (stdout otherwise)')->addOption('format', NULL, InputOption::VALUE_REQUIRED, 'Format of the report file: "plain" (default), "json" or "json-pretty"')->addOption('config', NULL, InputOption::VALUE_REQUIRED, 'Load configuration of analyzers from this file. This is expected to be ' . 'a plain PHP file which returns an array of Analyzers.');
     SourceHandler::configure($this);
 }
Пример #2
0
 protected function configure()
 {
     $this->setName('graphviz')->setDescription('Generate class relationship diagram for graphviz (.dot file)')->addOption('namespaces', NULL, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Provide whitelist of namespaces to include (you can use `/` instead of `\\`)')->addOption('show-namespace', NULL, InputOption::VALUE_NONE, 'Show namespaces in labels')->addOption('show-only-connected', NULL, InputOption::VALUE_NONE, 'Only show objects which are connected to others')->addOption('cluster-namespaces', NULL, InputOption::VALUE_NONE, 'Cluster objects by their namespace')->addOption('nest-clusters', NULL, InputOption::VALUE_NONE, 'Nest namespace clusters inside each other');
     SourceHandler::configure($this);
 }