adding function getSecureRandom(); to IServerContainer

This commit is contained in:
Thomas Müller 2015-03-31 11:13:46 +02:00
parent 4843e5ce30
commit 6ccd3ffa23
2 changed files with 8 additions and 2 deletions

View File

@ -690,7 +690,7 @@ class Server extends SimpleContainer implements IServerContainer {
*
* @return \OCP\Security\ISecureRandom
*/
function getSecureRandom() {
function getSecureRandom() {
return $this->query('SecureRandom');
}

View File

@ -149,6 +149,13 @@ interface IServerContainer {
*/
function getHasher();
/**
* Returns a SecureRandom instance
*
* @return \OCP\Security\ISecureRandom
*/
function getSecureRandom();
/**
* Returns an instance of the db facade
* @deprecated use getDatabaseConnection, will be removed in ownCloud 10
@ -156,7 +163,6 @@ interface IServerContainer {
*/
function getDb();
/**
* Returns the app config manager
*