1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-10-24 12:26:05 +02:00

Add component for administrative tasks as class 'Administration'

This commit is contained in:
Marco
2017-02-21 09:43:30 +01:00
parent d99979f270
commit da4bb583bf
2 changed files with 38 additions and 0 deletions

View File

@@ -1198,6 +1198,17 @@ final class Auth extends UserManager {
}
}
/**
* Returns the component that can be used for administrative tasks
*
* You must offer access to this interface to authorized users only (restricted via your own access control)
*
* @return Administration
*/
public function admin() {
return new Administration($this->db);
}
/**
* Creates the cookie settings that will be used to create and update cookies on the client
*