src/Module/Authorization/PageACL.php
public function addRule($url, $rule)
    {
        if (!is_string($url) || !is_array($rule)) {
            throw new \InvalidArgumentException("addRule() expects a string and an array.");
        }
        $this->runtimeRules[$url] = $rule;
    }
public function addRule($url, $rule)
    {
        if (!is_string($url) || !is_array($rule)) {
            throw new \InvalidArgumentException("addRule() expects a string and an array.");
        }
        $this->runtimeRules[$url] = $rule;
    }
public function addRule ( $ url , $ rule ) { if ( ! is_string ( $ url ) || ! is_array ( $ rule ) ) { throw new \ InvalidArgumentException ( "addRule() expects a string and an array." ) ; } $ this -> runtimeRules [ $ url ] = $ rule ; }
Adds an additional ACL rule

Can be used by other plugins to control access to certain pages

@param string $url Url for which the rule applies
@param array $rule Rule to be added
Adds an additional ACL rule