li3_access\extensions\adapter\security\access\AuthRbac::_getRolesByAuth PHP Метод

_getRolesByAuth() защищенный статический Метод

protected static _getRolesByAuth ( mixed $params, array $options = [] ) : array | mixed
$params mixed The Lithium `Request` object, or an array with at least 'request', and 'params'
$options array
Результат array | mixed $roles Roles with attached User Models
    protected static function _getRolesByAuth($params, array $options = array())
    {
        $roles = array('*' => '*');
        foreach (array_keys(Auth::config()) as $key) {
            if ($check = Auth::check($key, $params['request'], $options)) {
                $roles[$key] = $check;
            }
        }
        return $roles = array_filter($roles);
    }