protected function buildCommand($defaultBin, $action, $command)
    {
        $bin = $this->config->get('manager-bin', $defaultBin);
        $bin = Platform::isWindows() ? str_replace('/', '\\', $bin) : $bin;
        $gOptions = trim($this->config->get('manager-options', ''));
        $options = trim($this->config->get('manager-'.$action.'-options', ''));

        return $bin.' '.$command
            .(empty($gOptions) ? '' : ' '.$gOptions)
            .(empty($options) ? '' : ' '.$options);
    }
protected function buildCommand($defaultBin, $action, $command)
    {
        $bin = $this->config->get('manager-bin', $defaultBin);
        $bin = Platform::isWindows() ? str_replace('/', '\\', $bin) : $bin;
        $gOptions = trim($this->config->get('manager-options', ''));
        $options = trim($this->config->get('manager-'.$action.'-options', ''));

        return $bin.' '.$command
            .(empty($gOptions) ? '' : ' '.$gOptions)
            .(empty($options) ? '' : ' '.$options);
    }
protected function buildCommand ( $ defaultBin , $ action , $ command ) { $ bin = $ this -> config -> get ( 'manager-bin' , $ defaultBin ) ; $ bin = Platform :: isWindows ( ) ? str_replace ( '/' , '\\' , $ bin ) : $ bin ; $ gOptions = trim ( $ this -> config -> get ( 'manager-options' , '' ) ) ; $ options = trim ( $ this -> config -> get ( 'manager-' . $ action . '-options' , '' ) ) ; return $ bin . ' ' . $ command . ( empty ( $ gOptions ) ? '' : ' ' . $ gOptions ) . ( empty ( $ options ) ? '' : ' ' . $ options ) ; }
Build the command with binary and command options.

@param string $defaultBin The default binary of command if option isn't defined
@param string $action     The command action to retrieve the options in config
@param string $command    The command

@return string
Build the command with binary and command options .