public function command($command, array $parameters = array())
    {
        $binary = ProcessUtils::escapeArgument((new PhpExecutableFinder)->find(false));

        if (defined('HHVM_VERSION')) {
            $binary .= ' --php';
        }

        if (defined('FORGE_BINARY')) {
            $forge = ProcessUtils::escapeArgument(FORGE_BINARY);
        } else {
            $forge = 'forge';
        }

        return $this->exec("{$binary} {$forge} {$command}", $parameters);
    }
public function command($command, array $parameters = array())
    {
        $binary = ProcessUtils::escapeArgument((new PhpExecutableFinder)->find(false));

        if (defined('HHVM_VERSION')) {
            $binary .= ' --php';
        }

        if (defined('FORGE_BINARY')) {
            $forge = ProcessUtils::escapeArgument(FORGE_BINARY);
        } else {
            $forge = 'forge';
        }

        return $this->exec("{$binary} {$forge} {$command}", $parameters);
    }
public function command ( $ command , array $ parameters = array ( ) ) { $ binary = ProcessUtils :: escapeArgument ( ( new PhpExecutableFinder ) -> find ( false ) ) ; if ( defined ( 'HHVM_VERSION' ) ) { $ binary .= ' --php' ; } if ( defined ( 'FORGE_BINARY' ) ) { $ forge = ProcessUtils :: escapeArgument ( FORGE_BINARY ) ; } else { $ forge = 'forge' ; } return $ this -> exec ( "{$binary} {$forge} {$command}" , $ parameters ) ; }
Add a new Forge command event to the schedule.

@param  string  $command
@param  array  $parameters
@return \Nova\Console\Scheduling\Event
Add a new Forge command event to the schedule .