parent
96ea02e59f
commit
3aff91d204
|
@ -3,5 +3,5 @@
|
|||
<h1><?= /** @type string $title */ $title ?></h1>
|
||||
</div>
|
||||
<div class="content">
|
||||
<?= /** @type \Icinga\Module\Doc\TocRenderer $toc */ $toc ?>
|
||||
<?= /** @type \Icinga\Module\Doc\DocTocRenderer $toc */ $toc ?>
|
||||
</div>
|
||||
|
|
|
@ -38,7 +38,7 @@ class DocController extends ModuleActionController
|
|||
protected function renderToc($path, $name, $url, array $urlParams = array())
|
||||
{
|
||||
$parser = new DocParser($path);
|
||||
$toc = new TocRenderer($parser->getDocTree()->getIterator());
|
||||
$toc = new DocTocRenderer($parser->getDocTree()->getIterator());
|
||||
$this->view->toc = $toc
|
||||
->setUrl($url)
|
||||
->setUrlParams($urlParams);
|
||||
|
|
|
@ -14,7 +14,7 @@ use RecursiveIteratorIterator;
|
|||
* {@inheritdoc}
|
||||
* }
|
||||
*/
|
||||
class TocRenderer extends Renderer
|
||||
class DocTocRenderer extends Renderer
|
||||
{
|
||||
/**
|
||||
* Content to render
|
Loading…
Reference in New Issue