Magestead\Command\Cache\CleanCommand::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:clean {$cacheType}";
            case 'magento2':
                return "cd /var/www/public;bin/magento cache:clean {$cacheType}";
        }
        return false;
    }