Tuli\Command::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $parser = new CFGParser((new ParserFactory())->create(ParserFactory::PREFER_PHP7));
        $graphs = $this->getGraphsFromFiles($input->getArgument('files'), $input->getOption("exclude"), $parser);
        return $this->analyzeGraphs($graphs);
    }

Usage Example

Ejemplo n.º 1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $state = parent::execute($input, $output);
     $image = $input->getOption("image");
     if ($image) {
         $parts = explode('.', $image);
         (new Printer\GraphViz())->printCfg($state->blocks)->export(end($parts), $image);
     } else {
         echo (new Printer\Text())->printCfg($state->blocks);
     }
 }
All Usage Examples Of Tuli\Command::execute