Skip to content

Commit a50df5c

Browse files
authored
Update Robots.php
1 parent 6e4c5d0 commit a50df5c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Robots.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 Robots extends BaseComponent
17+
final class Robots extends \Nette\Application\UI\Control
1818
{
1919
private static $defaultConfig = [
2020
'all' => [
@@ -37,4 +37,11 @@ protected function beforeRender() : void
3737
{
3838
$this->template->robots = $this->robots;
3939
}
40+
41+
public function render() : void
42+
{
43+
$this->beforeRender();
44+
$this->template->setFile(__DIR__ . '/Robots.latte');
45+
$this->template->render();
46+
}
4047
}

0 commit comments

Comments
 (0)