mirror of
https://github.com/flarum/framework.git
synced 2025-01-22 12:16:31 +08:00
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:
parent
cc5e586d38
commit
99a05900b1
|
@ -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);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user