Magestead\Command\Index\SetModeCommand::getCommand PHP Метод

getCommand() защищенный Метод

protected getCommand ( Config $config, $mode ) : boolean | string
$config Magestead\Helper\Config
$mode
Результат boolean | string
    protected function getCommand(Config $config, $mode)
    {
        $type = $config->type;
        switch ($type) {
            case 'magento2':
                return "cd /var/www/public;bin/magento indexer:set-mode {$mode}";
        }
        return false;
    }