Browse Source

Add IniGetWrapper to public interface

tags/v8.0.0alpha1
Lukas Reschke 9 years ago
parent
commit
d84a1f6f3a
2 changed files with 20 additions and 1 deletions
  1. 13
    1
      lib/private/server.php
  2. 7
    0
      lib/public/iservercontainer.php

+ 13
- 1
lib/private/server.php 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');
}
}

+ 7
- 0
lib/public/iservercontainer.php View File

@@ -310,4 +310,11 @@ interface IServerContainer {
* @return \OCP\Files\Config\IMountProviderCollection
*/
function getMountProviderCollection();

/**
* Get the IniWrapper
*
* @return \bantu\IniGetWrapper\IniGetWrapper
*/
function getIniWrapper();
}

Loading…
Cancel
Save