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;
    }