mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Also catch in getProvider
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
9a5a80438a
commit
b851446c6a
1 changed files with 10 additions and 3 deletions
|
|
@ -298,9 +298,16 @@ class ProviderFactory implements IProviderFactory {
|
|||
}
|
||||
|
||||
foreach ($this->registeredShareProviders as $shareProvider) {
|
||||
/** @var IShareProvider $instance */
|
||||
$instance = $this->serverContainer->get($shareProvider);
|
||||
$this->shareProviders[$instance->identifier()] = $instance;
|
||||
try {
|
||||
/** @var IShareProvider $instance */
|
||||
$instance = $this->serverContainer->get($shareProvider);
|
||||
$this->shareProviders[$instance->identifier()] = $instance;
|
||||
} catch (\Throwable $e) {
|
||||
$this->serverContainer->get(LoggerInterface::class)->error(
|
||||
$e->getMessage(),
|
||||
['exception' => $e]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($this->shareProviders[$id])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue