mirror of
https://github.com/idanoo/laravel-resque.git
synced 2024-11-21 16:11:59 +00:00
prefix settable
This commit is contained in:
parent
9e7b3a658e
commit
0519a18b38
@ -34,7 +34,8 @@ class ResqueServiceProvider extends ServiceProvider
|
|||||||
protected function registerResque()
|
protected function registerResque()
|
||||||
{
|
{
|
||||||
$this->app->singleton('resque', function () {
|
$this->app->singleton('resque', function () {
|
||||||
return new Resque();
|
$prefix = $connection = $this->app['config']['resque.prefix'];
|
||||||
|
return (new Resque())->setPrefix($prefix);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user