Added a content type system to be able to extend the conversion mechanism
Dieser Commit ist enthalten in:
@ -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);
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren