Browse Source

[Nostromo] Refactor MageApplication

pull/1/head
Andrés Montañez 8 years ago
parent
commit
8090ebf65b
  1. 17
      src/Mage/MageApplication.php

17
src/Mage/MageApplication.php

@ -79,23 +79,12 @@ class MageApplication extends Application
$this->runtime = new Runtime();
$this->runtime->setConfiguration($config);
$this->runtime->setLogger($logger);
} else {
throw new RuntimeException(sprintf('The file "%s" does not have a valid Magallanes configuration.', $file));
}
}
/**
* Run the Application
*
* @param InputInterface $input
* @param OutputInterface $output
* @throws RuntimeException
*/
public function run(InputInterface $input = null, OutputInterface $output = null)
{
$this->loadBuiltInCommands();
parent::run();
} else {
throw new RuntimeException(sprintf('The file "%s" does not have a valid Magallanes configuration.', $file));
}
}
/**

Loading…
Cancel
Save