Barryvdh\Queue\AsyncQueue::getBackgroundCommand PHP Method

getBackgroundCommand() protected method

protected getBackgroundCommand ( $cmd )
    protected function getBackgroundCommand($cmd)
    {
        if (defined('PHP_WINDOWS_VERSION_BUILD')) {
            return 'start /B ' . $cmd . ' > NUL';
        } else {
            return $cmd . ' > /dev/null 2>&1 &';
        }
    }