Acl\Adapter\Utility\PhpAco::__construct PHP Method

__construct() public method

Constructor
public __construct ( array $rules = [] )
$rules array Rules array
    public function __construct(array $rules = [])
    {
        foreach (['allow', 'deny'] as $type) {
            if (empty($rules[$type])) {
                $rules[$type] = [];
            }
        }
        $this->build($rules['allow'], $rules['deny']);
    }