lithium\security\auth\adapter\Http::__construct()
Constructor.
Parameters
-
array
$config'method': default:digestoptions:basic|digest'realm': default:Protected by Lithium'users': the users to permit. key => value pair of username => password
Returns
voidSource
public function __construct(array $config = []) {
$realm = basename(Libraries::get(true, 'path'));
$defaults = [
'method' => 'digest', 'realm' => $realm, 'users' => []
];
parent::__construct($config + $defaults);
}