* I'm {person.name}. Call me "{person.nick}". A ding-dang doo!
*
*
*
* You saw this coming...
* Elvis has left the building
*
*
*
* At the time of writing this, `v:variable.unset` is not able
* to remove members of for example arrays:
*
*
*
*
* @author Claus Due
* @package Vhs
* @subpackage ViewHelpers\Var
*/
class UnsetViewHelper extends AbstractViewHelper {
/**
* Unsets variable $name if it exists in the container
*
* @param string $name
* @return void
*/
public function render($name) {
if (TRUE === $this->templateVariableContainer->exists($name)) {
$this->templateVariableContainer->remove($name);
}
}
}