li3_access\extensions\adapter\security\access\Rules::__construct PHP Method

__construct() public method

Sets default adapter configuration.
public __construct ( array $config = [] )
$config array Adapter configuration, which includes the following default options: - `'rules'` _array_: An array of rules to be added to the default rules initialized by the adapter. See the `'rules'` option of the `check()` method for more information on the acceptable format of these values. - `'default'` _array_: The default list of rules to use when performing access checks. - `'allowAny'` _boolean_: If set to `true`, access checks will return successful if _any_ access rule passes. Otherwise, all are required to pass in order for the check to succeed. Defaults to `false`.
    public function __construct(array $config = array())
    {
        $defaults = array('rules' => array(), 'default' => array(), 'allowAny' => false, 'user' => function () {
        });
        parent::__construct($config + $defaults);
    }