public function registerConnectors($manager)
 {
     parent::registerConnectors($manager);
     // add the blocking beanstalkd connector
     $manager->addConnector('blockingbeanstalkd', function () {
         return new BlockingBeanstalkdConnector();
     });
 }
コード例 #2
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     parent::boot();
     $this->app->singleton('queue.failer', function ($app) {
         $config = $app['config']['queue.failed'];
         return new FilesystemFailedJobProvider(isset($config['path']) ? $config['path'] : storage_path('failed_jobs'));
     });
 }
コード例 #3
0
 /**
  * Register the failed job services.
  *
  * @return void
  */
 protected function registerFailedJobServices()
 {
     // Add compatible queue failer if mongodb is configured.
     if (config('queue.failed.database') == 'mongodb') {
         $this->app->singleton('queue.failer', function ($app) {
             return new MongoFailedJobProvider($app['db'], config('queue.failed.database'), config('queue.failed.table'));
         });
     } else {
         parent::registerFailedJobServices();
     }
 }
コード例 #4
0
ファイル: Manager.php プロジェクト: saj696/pipe
 /**
  * Register the default connectors that the component ships with.
  *
  * @return void
  */
 protected function registerConnectors()
 {
     $provider = new QueueServiceProvider($this->container);
     $provider->registerConnectors($this->manager);
 }
コード例 #5
0
 /**
  * {@inheritdoc}
  */
 public function register()
 {
     parent::register();
     $this->registerSuperConfCommand();
 }
コード例 #6
0
 /**
  * {@inheritdoc}
  */
 public function boot()
 {
     parent::boot();
     $this->registerCommand();
 }
コード例 #7
0
 /**
  * Register the connectors on the queue manager.
  *
  * @param  \Illuminate\Queue\QueueManager  $manager
  * @return void
  */
 public function registerConnectors($manager)
 {
     parent::registerConnectors($manager);
     $this->registerGaeConnector($manager);
 }
コード例 #8
0
 /**
  * {@inheritdoc}
  */
 public function registerConnectors($manager)
 {
     parent::registerConnectors($manager);
     $this->registerSortedRedisConnector($manager);
 }