lithium\security\auth\adapter\Http::__construct()

public method

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

void

Source

	public function __construct(array $config = []) {
		$realm = basename(Libraries::get(true, 'path'));
		$defaults = ['method' => 'digest', 'realm' => $realm, 'users' => []];
		$this->_autoConfig($config + $defaults, []);
		$this->_autoInit($config);
	}