Skip to content
Snippets Groups Projects
Commit 7b47e553 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix: Do not mix several configuration styles

parent 8195d203
No related branches found
No related tags found
No related merge requests found
......@@ -39,10 +39,10 @@ Parameters
If no other values exist, the attribute will be removed completely.
This parameter is OPTIONAL.
`merge`
: A boolean indicating whether the altered values must be merged with the
target attribute values, or if the target attribute should be overwritten.
Defaults to `false`.
`%merge`
: Indicates whether the altered values must be merged with the target attribute values. The default
behaviour is to overwrite the target attribute completely.
This parameter is OPTIONAL.
Examples
--------
......
......@@ -79,6 +79,8 @@ class AttributeAlter extends Auth\ProcessingFilter
$this->replace = true;
} elseif ($value === '%remove') {
$this->remove = true;
} elseif ($value === '%merge') {
$this->merge = true;
} else {
throw new Error\Exception('Unknown flag : ' . var_export($value, true));
}
......@@ -95,9 +97,6 @@ class AttributeAlter extends Auth\ProcessingFilter
} elseif ($name === 'target') {
// Set target
$this->target = $value;
} elseif ($name === 'merge') {
// Set the merging strategy
$this->merge = $value;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment