SimpleSoftwareIO\SMS\SMS::setQueue PHP Метод

setQueue() публичный Метод

Set the queue manager instance.
public setQueue ( Illuminate\Queue\QueueManager $queue )
$queue Illuminate\Queue\QueueManager
    public function setQueue(QueueManager $queue)
    {
        $this->queue = $queue;
    }

Usage Example

Пример #1
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->app->bind('sms', function ($app) {
         $sender = $this->registerSender();
         $sms = new SMS($sender);
         $sms->setContainer($app);
         $sms->setLogger($app['log']);
         $sms->setQueue($app['queue']);
         //Set the from and pretending settings
         if ($from = config('sms.from', false)) {
             $sms->alwaysFrom($from);
         }
         $sms->setPretending(config('sms.pretend', false));
         return $sms;
     });
 }
All Usage Examples Of SimpleSoftwareIO\SMS\SMS::setQueue