summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-05 19:56:29 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-11 00:09:55 +0100
commitd84a1f6f3ae380d42dbd2970d6b3bfedd5e01200 (patch)
tree4031053faa34ebafeca0491463c145b06f1e652d /lib
parentbf9d4d425d56f540153cdde94469254571a4d779 (diff)
downloadnextcloud-server-d84a1f6f3ae380d42dbd2970d6b3bfedd5e01200.tar.gz
nextcloud-server-d84a1f6f3ae380d42dbd2970d6b3bfedd5e01200.zip
Add IniGetWrapper to public interface
Diffstat (limited to 'lib')
-rw-r--r--lib/private/server.php14
-rw-r--r--lib/public/iservercontainer.php7
2 files changed, 20 insertions, 1 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index e0105506970..c0606fc4fe6 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -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');
+ }
}
diff --git a/lib/public/iservercontainer.php b/lib/public/iservercontainer.php
index 657c9be423b..193e2fdf105 100644
--- a/lib/public/iservercontainer.php
+++ b/lib/public/iservercontainer.php
@@ -310,4 +310,11 @@ interface IServerContainer {
* @return \OCP\Files\Config\IMountProviderCollection
*/
function getMountProviderCollection();
+
+ /**
+ * Get the IniWrapper
+ *
+ * @return \bantu\IniGetWrapper\IniGetWrapper
+ */
+ function getIniWrapper();
}