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:
11
src/Auth.php
11
src/Auth.php
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user