Magestead\Command\Cache\EnableCommand::getCommand PHP Метод

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

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