From 8090ebf65be166c6c1757c67a6d968020c8fac66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Monta=C3=B1ez?= Date: Wed, 4 Jan 2017 01:14:12 -0300 Subject: [PATCH] [Nostromo] Refactor MageApplication --- src/Mage/MageApplication.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/Mage/MageApplication.php b/src/Mage/MageApplication.php index 064019c..aeddacc 100644 --- a/src/Mage/MageApplication.php +++ b/src/Mage/MageApplication.php @@ -79,25 +79,14 @@ class MageApplication extends Application $this->runtime = new Runtime(); $this->runtime->setConfiguration($config); $this->runtime->setLogger($logger); + + $this->loadBuiltInCommands(); + } 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(); - } - /** * Loads the BuiltIn Commands */