Merge pull request #24381 from owncloud/correc_typehint
Use correct typehint for the IProviderFactory
This commit is contained in:
commit
ed3b9d5aff
|
@ -623,7 +623,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
$this->registerService('ShareManager', function(Server $c) {
|
$this->registerService('ShareManager', function(Server $c) {
|
||||||
$config = $c->getConfig();
|
$config = $c->getConfig();
|
||||||
$factoryClass = $config->getSystemValue('sharing.managerFactory', '\OC\Share20\ProviderFactory');
|
$factoryClass = $config->getSystemValue('sharing.managerFactory', '\OC\Share20\ProviderFactory');
|
||||||
/** @var \OC\Share20\IProviderFactory $factory */
|
/** @var \OCP\Share\IProviderFactory $factory */
|
||||||
$factory = new $factoryClass($this);
|
$factory = new $factoryClass($this);
|
||||||
|
|
||||||
$manager = new \OC\Share20\Manager(
|
$manager = new \OC\Share20\Manager(
|
||||||
|
|
Loading…
Reference in New Issue