2014-05-14 23:24:20 +10:00
|
|
|
<?php namespace Backend\Facades;
|
|
|
|
|
|
|
|
use October\Rain\Support\Facade;
|
|
|
|
|
2020-09-11 06:49:16 +04:00
|
|
|
/**
|
|
|
|
* @method static void registerCallback(callable $callback)
|
|
|
|
* @method static void registerPermissions(string $owner, array $definitions)
|
|
|
|
* @method static void removePermission(string $owner, string $code)
|
|
|
|
* @method static array listPermissions()
|
|
|
|
* @method static array listTabbedPermissions()
|
|
|
|
* @method static array listPermissionsForRole(string $role, bool $includeOrphans = true)
|
|
|
|
* @method static boolean hasPermissionsForRole(string $role)
|
|
|
|
*
|
|
|
|
* @see \Backend\Classes\AuthManager
|
|
|
|
*/
|
2014-05-14 23:24:20 +10:00
|
|
|
class BackendAuth extends Facade
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Get the registered name of the component.
|
2017-04-24 13:38:19 +02:00
|
|
|
*
|
2014-05-14 23:24:20 +10:00
|
|
|
* @return string
|
|
|
|
*/
|
2014-10-10 23:36:04 +02:00
|
|
|
protected static function getFacadeAccessor()
|
|
|
|
{
|
|
|
|
return 'backend.auth';
|
|
|
|
}
|
2014-05-14 23:24:20 +10:00
|
|
|
}
|