mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-10 01:36:38 +02:00
[Nostromo] Make sure app is a MageApplication
This commit is contained in:
parent
8a417d7246
commit
c98af5dc73
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
namespace Mage\Command;
|
namespace Mage\Command;
|
||||||
|
|
||||||
|
use Mage\MageApplication;
|
||||||
use Mage\Utils;
|
use Mage\Utils;
|
||||||
use Mage\Runtime\Runtime;
|
use Mage\Runtime\Runtime;
|
||||||
use Psr\Log\LogLevel;
|
use Psr\Log\LogLevel;
|
||||||
|
@ -72,6 +73,9 @@ abstract class AbstractCommand extends Command
|
||||||
*/
|
*/
|
||||||
protected function requireConfig()
|
protected function requireConfig()
|
||||||
{
|
{
|
||||||
$this->getApplication()->configure();
|
$app = $this->getApplication();
|
||||||
|
if ($app instanceof MageApplication) {
|
||||||
|
$app->configure();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue