src/QueueManager.php
public function setDefaultQueue($name)
    {
        if (!$this->hasQueue($name)) {
            throw new \InvalidArgumentException(sprintf('Unknown queue "%s"', $name));
        }

        $this->defaultQueue = $name;

        return $this;
    }
public function setDefaultQueue($name)
    {
        if (!$this->hasQueue($name)) {
            throw new \InvalidArgumentException(sprintf('Unknown queue "%s"', $name));
        }

        $this->defaultQueue = $name;

        return $this;
    }
public function setDefaultQueue ( $ name ) { if ( ! $ this -> hasQueue ( $ name ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Unknown queue "%s"' , $ name ) ) ; } $ this -> defaultQueue = $ name ; return $ this ; }
Sets default queue

@param string $name Queue name

@return QueueManager
Sets default queue