lithium\security\auth\adapter\Http::__construct()
Overrides
lithium\core\Object::__construct()
Constructor.
Parameters
-
array
$config
'method'
: default:digest
options: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 = array()) {
$realm = basename(Libraries::get(true, 'path'));
$defaults = array(
'method' => 'digest', 'realm' => $realm, 'users' => array()
);
parent::__construct($config + $defaults);
}