public function registerConnectors($manager) { parent::registerConnectors($manager); // add the blocking beanstalkd connector $manager->addConnector('blockingbeanstalkd', function () { return new BlockingBeanstalkdConnector(); }); }
/** * 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')); }); }
/** * 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(); } }
/** * Register the default connectors that the component ships with. * * @return void */ protected function registerConnectors() { $provider = new QueueServiceProvider($this->container); $provider->registerConnectors($this->manager); }
/** * {@inheritdoc} */ public function register() { parent::register(); $this->registerSuperConfCommand(); }
/** * {@inheritdoc} */ public function boot() { parent::boot(); $this->registerCommand(); }
/** * Register the connectors on the queue manager. * * @param \Illuminate\Queue\QueueManager $manager * @return void */ public function registerConnectors($manager) { parent::registerConnectors($manager); $this->registerGaeConnector($manager); }
/** * {@inheritdoc} */ public function registerConnectors($manager) { parent::registerConnectors($manager); $this->registerSortedRedisConnector($manager); }