Skip to content

Commit c20315d

Browse files
authored
Update Security.php
1 parent dcf6d0a commit c20315d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Security.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace Nepttune\Component;
1616

17-
final class Security extends BaseComponent
17+
final class Security extends \Nette\Application\UI\Control
1818
{
1919
/** @var array */
2020
private $security;
@@ -29,4 +29,11 @@ protected function beforeRender() : void
2929
{
3030
$this->template->security = $this->security;
3131
}
32+
33+
public function render() : void
34+
{
35+
$this->beforeRender();
36+
$this->template->setFile(__DIR__ . '/Security.latte');
37+
$this->template->render();
38+
}
3239
}

0 commit comments

Comments
 (0)