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



namespace OC; namespace OC;


use bantu\IniGetWrapper\IniGetWrapper;
use OC\AppFramework\Http\Request; use OC\AppFramework\Http\Request;
use OC\AppFramework\Db\Db; use OC\AppFramework\Db\Db;
use OC\AppFramework\Utility\SimpleContainer; use OC\AppFramework\Utility\SimpleContainer;
use OC\Diagnostics\QueryLogger; use OC\Diagnostics\QueryLogger;
use OC\Files\Config\StorageManager; use OC\Files\Config\StorageManager;
use OC\Security\CertificateManager; use OC\Security\CertificateManager;
use OC\DB\ConnectionWrapper;
use OC\Files\Node\Root; use OC\Files\Node\Root;
use OC\Files\View; use OC\Files\View;
use OC\Security\Crypto; use OC\Security\Crypto;
$loader = \OC\Files\Filesystem::getLoader(); $loader = \OC\Files\Filesystem::getLoader();
return new \OC\Files\Config\MountProviderCollection($loader); return new \OC\Files\Config\MountProviderCollection($loader);
}); });
$this->registerService('IniWrapper', function ($c) {
return new IniGetWrapper();
});
} }


/** /**
function getMountProviderCollection(){ function getMountProviderCollection(){
return $this->query('MountConfigManager'); 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

* @return \OCP\Files\Config\IMountProviderCollection * @return \OCP\Files\Config\IMountProviderCollection
*/ */
function getMountProviderCollection(); function getMountProviderCollection();

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

Loading…
Cancel
Save