From 0519a18b389ccf6c71063dca6e095fb00f17180f Mon Sep 17 00:00:00 2001 From: Holger Reinhardt Date: Fri, 29 Jul 2016 18:04:55 +0200 Subject: [PATCH] prefix settable --- src/ResqueServiceProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ResqueServiceProvider.php b/src/ResqueServiceProvider.php index 81a1fb1..50db87c 100644 --- a/src/ResqueServiceProvider.php +++ b/src/ResqueServiceProvider.php @@ -34,7 +34,8 @@ class ResqueServiceProvider extends ServiceProvider protected function registerResque() { $this->app->singleton('resque', function () { - return new Resque(); + $prefix = $connection = $this->app['config']['resque.prefix']; + return (new Resque())->setPrefix($prefix); }); }