Fix the queue:restart command (#1932)

Adding a proxy callStatic on our simple implementation of the Manager class allows passing through calls like `forever()` to the underlying cache driver instance.
This commit is contained in:
Daniël Klabbers 2019-11-15 15:01:31 +01:00 committed by Franz Liedke
parent cc5e586d38
commit 99a05900b1

View File

@ -33,7 +33,7 @@ class QueueServiceProvider extends AbstractServiceProvider
Commands\ForgetFailedCommand::class, Commands\ForgetFailedCommand::class,
Console\ListenCommand::class, Console\ListenCommand::class,
Commands\ListFailedCommand::class, Commands\ListFailedCommand::class,
// Commands\RestartCommand::class, Commands\RestartCommand::class,
Commands\RetryCommand::class, Commands\RetryCommand::class,
Commands\WorkCommand::class, Commands\WorkCommand::class,
]; ];
@ -87,6 +87,11 @@ class QueueServiceProvider extends AbstractServiceProvider
{ {
return $this->app['cache.store']; return $this->app['cache.store'];
} }
public function __call($name, $arguments)
{
return call_user_func_array([$this->driver(), $name], $arguments);
}
}; };
}); });