mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-01 21:52:49 +02:00
[Nostromo] Update MageApplication and Composer
This commit is contained in:
parent
d1cf5583a0
commit
5e2cb0f9a7
|
@ -28,8 +28,5 @@
|
|||
"**/Tests/"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"bin-dir": "bin"
|
||||
},
|
||||
"bin": ["bin/mage"]
|
||||
}
|
||||
|
|
|
@ -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…
Reference in a new issue