diff --git a/src/Command/AbstractCommand.php b/src/Command/AbstractCommand.php index 9fa2f90..ba94164 100644 --- a/src/Command/AbstractCommand.php +++ b/src/Command/AbstractCommand.php @@ -10,6 +10,7 @@ namespace Mage\Command; +use Mage\MageApplication; use Mage\Utils; use Mage\Runtime\Runtime; use Psr\Log\LogLevel; @@ -72,6 +73,9 @@ abstract class AbstractCommand extends Command */ protected function requireConfig() { - $this->getApplication()->configure(); + $app = $this->getApplication(); + if ($app instanceof MageApplication) { + $app->configure(); + } } }