adding function getSecureRandom(); to IServerContainer
This commit is contained in:
parent
4843e5ce30
commit
6ccd3ffa23
|
@ -690,7 +690,7 @@ class Server extends SimpleContainer implements IServerContainer {
|
||||||
*
|
*
|
||||||
* @return \OCP\Security\ISecureRandom
|
* @return \OCP\Security\ISecureRandom
|
||||||
*/
|
*/
|
||||||
function getSecureRandom() {
|
function getSecureRandom() {
|
||||||
return $this->query('SecureRandom');
|
return $this->query('SecureRandom');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -149,6 +149,13 @@ interface IServerContainer {
|
||||||
*/
|
*/
|
||||||
function getHasher();
|
function getHasher();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a SecureRandom instance
|
||||||
|
*
|
||||||
|
* @return \OCP\Security\ISecureRandom
|
||||||
|
*/
|
||||||
|
function getSecureRandom();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an instance of the db facade
|
* Returns an instance of the db facade
|
||||||
* @deprecated use getDatabaseConnection, will be removed in ownCloud 10
|
* @deprecated use getDatabaseConnection, will be removed in ownCloud 10
|
||||||
|
@ -156,7 +163,6 @@ interface IServerContainer {
|
||||||
*/
|
*/
|
||||||
function getDb();
|
function getDb();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the app config manager
|
* Returns the app config manager
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue