Remove interact from command and implement bootstrap method
Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
committed by
Julius Härtl
parent
e01e4cf1a7
commit
6714c89220
@@ -72,20 +72,6 @@ class BoardImport extends Command {
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function interact(InputInterface $input, OutputInterface $output) {
|
||||
$this->boardImportCommandService
|
||||
->setInput($input)
|
||||
->setOutput($output)
|
||||
->setSystem($input->getOption('system'))
|
||||
->setConfigInstance($input->getOption('config'))
|
||||
->validate();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param InputInterface $input
|
||||
* @param OutputInterface $output
|
||||
@@ -97,6 +83,7 @@ class BoardImport extends Command {
|
||||
->boardImportCommandService
|
||||
->setInput($input)
|
||||
->setOutput($output)
|
||||
->setCommand($this)
|
||||
->import();
|
||||
$output->writeln('Done!');
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user