Add IniGetWrapper to public interface
This commit is contained in:
parent
bf9d4d425d
commit
d84a1f6f3a
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -310,4 +310,11 @@ interface IServerContainer {
|
|||
* @return \OCP\Files\Config\IMountProviderCollection
|
||||
*/
|
||||
function getMountProviderCollection();
|
||||
|
||||
/**
|
||||
* Get the IniWrapper
|
||||
*
|
||||
* @return \bantu\IniGetWrapper\IniGetWrapper
|
||||
*/
|
||||
function getIniWrapper();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue