HttpAuth
in package
Tags
Table of Contents
- $authHandler : HttpAuthInterface|object
- factory() : HttpAuthInterface|object
- 创建用于会话管理的对象
Properties
$authHandler
public
static HttpAuthInterface|object
$authHandler
Methods
factory()
创建用于会话管理的对象
public
static factory([string|object $type = 'cookie' ][, string $authKey = '' ]) : HttpAuthInterface|object
Parameters
- $type : string|object = 'cookie'
-
type 默认为字符串(COOKIE|SESSION|REDIS|包含命名空间的类的路径) 也可以是一个实现了HttpAuthInterface接口的对象
- $authKey : string = ''
-
加解密密钥