Browse Source

[Nostromo] Update MageApplication and Composer

pull/1/head
Andrés Montañez 8 years ago
parent
commit
5e2cb0f9a7
  1. 3
      composer.json
  2. 6
      src/Mage/MageApplication.php

3
composer.json

@ -28,8 +28,5 @@
"**/Tests/"
]
},
"config": {
"bin-dir": "bin"
},
"bin": ["bin/mage"]
}

6
src/Mage/MageApplication.php

@ -40,6 +40,10 @@ class MageApplication extends Application
*/
public function configure($file)
{
if (!file_exists($file) || !is_readable($file)) {
throw new RuntimeException(sprintf('The file "%s" does not exists or is not readable.', $file));
}
$config = Yaml::parse(file_get_contents($file));
if (array_key_exists('magephp', $config)) {
$this->configuration = $config['magephp'];
@ -61,7 +65,7 @@ class MageApplication extends Application
*
* @param InputInterface $input
* @param OutputInterface $output
* @throws Exception
* @throws RuntimeException
*/
public function run(InputInterface $input = null, OutputInterface $output = null)
{

Loading…
Cancel
Save