8
0

Added a content type system to be able to extend the conversion mechanism

Dieser Commit ist enthalten in:
Stéphane Goetz
2015-07-28 17:25:03 +02:00
Ursprung 45328d5f4e
Commit b5ce4f1d79
20 geänderte Dateien mit 232 neuen und 37 gelöschten Zeilen

Datei anzeigen

@ -23,9 +23,15 @@ class Generate extends SymfonyCommand
protected function execute(InputInterface $input, OutputInterface $output)
{
// Initialize the system
$daux = new Daux(Daux::STATIC_MODE);
$daux->initialize($input->getOption('configuration'));
// Set the format if requested
if ($input->getOption('format')) {
$daux->getParams()['format'] = $input->getOption('format');
}
$width = $this->getApplication()->getTerminalDimensions()[0];
// Instiantiate the processor if one is defined
@ -35,11 +41,6 @@ class Generate extends SymfonyCommand
$daux->generateTree();
$daux->getProcessor()->manipulateTree($daux->tree);
// Set the format if requested
if ($input->getOption('format')) {
$daux->getParams()['format'] = $input->getOption('format');
}
// Generate the documentation
$daux->getGenerator()->generateAll($input, $output, $width);
}