Add IniGetWrapper to public interface

This commit is contained in:
Lukas Reschke 2014-12-05 19:56:29 +01:00 committed by Morris Jobke
parent bf9d4d425d
commit d84a1f6f3a
2 changed files with 20 additions and 1 deletions

View File

@ -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');
}
}

View File

@ -310,4 +310,11 @@ interface IServerContainer {
* @return \OCP\Files\Config\IMountProviderCollection
*/
function getMountProviderCollection();
/**
* Get the IniWrapper
*
* @return \bantu\IniGetWrapper\IniGetWrapper
*/
function getIniWrapper();
}