diff --git a/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php b/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php index 546cccf..5de0786 100644 --- a/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php +++ b/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php @@ -81,6 +81,13 @@ public function run($args = [], $logIntoMagentoScheduler = true) $this->input = array_key_exists('input', $args) ? $args['input'] : null; $this->magentoRootDir = array_key_exists('root-dir', $args) ? $args['root-dir'] : null; $this->yaml = $args['yaml']; + + /** + * This is required for the initial arguments. + * Do not remove this line. And if you want to refactor it, + * build a test case with a subsequent workflow + */ + $this->args = $args; /** * The log directory is mandatory argument. We will use the helper