Container: remove traces of old class

This commit is contained in:
Thomas Gelf 2016-11-28 00:22:31 +01:00
parent 69a1e454d2
commit dbeb05aac9

View file

@ -38,51 +38,3 @@ class Container extends BaseElement
return $container;
}
}
class Old {
/**
* @inheritdoc
*/
public function render()
{
return $this->renderContainerFor(parent::render());
}
/**
* @inheritdoc
*/
public function renderError($error)
{
// TODO: eventually add class="error"
return $this->renderContainerFor(
parent::renderError($error)
);
}
/**
* @param bool $render
* @return $this
*/
public function renderIfEmpty($render = true)
{
$this->renderIfEmpty = $render;
return $this;
}
/**
* @param string $content
* @return string
*/
protected function renderContainerFor($content)
{
return sprintf(
'<%s%s>%s</%s>',
$this->tag,
$this->attributes->render(),
$content,
$this->tag
);
}
}