|
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
namespace OC; |
|
|
|
|
|
|
|
use bantu\IniGetWrapper\IniGetWrapper; |
|
|
|
use OC\AppFramework\Http\Request; |
|
|
|
use OC\AppFramework\Db\Db; |
|
|
|
use OC\AppFramework\Utility\SimpleContainer; |
|
|
@@ -11,7 +12,6 @@ use OC\Diagnostics\EventLogger; |
|
|
|
use OC\Diagnostics\QueryLogger; |
|
|
|
use OC\Files\Config\StorageManager; |
|
|
|
use OC\Security\CertificateManager; |
|
|
|
use OC\DB\ConnectionWrapper; |
|
|
|
use OC\Files\Node\Root; |
|
|
|
use OC\Files\View; |
|
|
|
use OC\Security\Crypto; |
|
|
@@ -285,6 +285,9 @@ class Server extends SimpleContainer implements IServerContainer { |
|
|
|
$loader = \OC\Files\Filesystem::getLoader(); |
|
|
|
return new \OC\Files\Config\MountProviderCollection($loader); |
|
|
|
}); |
|
|
|
$this->registerService('IniWrapper', function ($c) { |
|
|
|
return new IniGetWrapper(); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@@ -723,4 +726,13 @@ class Server extends SimpleContainer implements IServerContainer { |
|
|
|
function getMountProviderCollection(){ |
|
|
|
return $this->query('MountConfigManager'); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Get the IniWrapper |
|
|
|
* |
|
|
|
* @return \bantu\IniGetWrapper\IniGetWrapper |
|
|
|
*/ |
|
|
|
public function getIniWrapper() { |
|
|
|
return $this->query('IniWrapper'); |
|
|
|
} |
|
|
|
} |