/** * Build command options, including the configured root directory * option, if not specified already. * * @param string|\string[] $flags * * @return string */ protected function buildOptions($flags) { if ($magento_root = $this->config->get('rocketeer-magento::magento_root')) { if (!isset($flags['--root-dir'])) { $flags['--root-dir'] = $magento_root; } } return parent::buildOptions($flags); }