setQueue() public method

Set the queue manager instance.
public setQueue ( Illuminate\Queue\QueueManager $queue )
$queue Illuminate\Queue\QueueManager
コード例 #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;
     });
 }
コード例 #2
0
ファイル: _ide_helper.php プロジェクト: dprabhath/SEP_WE_016
 /**
  * Set the queue manager instance.
  *
  * @param \Illuminate\Queue\QueueManager $queue
  * @return $this 
  * @static 
  */
 public static function setQueue($queue)
 {
     return \SimpleSoftwareIO\SMS\SMS::setQueue($queue);
 }
コード例 #3
0
 /**
  * Set a few dependencies on the sms instance.
  *
  * @param SMS $sms
  * @param  $app
  * @return void
  */
 private function setSMSDependencies($sms, $app)
 {
     $sms->setContainer($app);
     $sms->setLogger($app['log']);
     $sms->setQueue($app['queue']);
 }