Skip to content

Commit

Permalink
Update Robots.php
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax authored Apr 18, 2019
1 parent 6e4c5d0 commit a50df5c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Robots.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace Nepttune\Component;

final class Robots extends BaseComponent
final class Robots extends \Nette\Application\UI\Control
{
private static $defaultConfig = [
'all' => [
Expand All @@ -37,4 +37,11 @@ protected function beforeRender() : void
{
$this->template->robots = $this->robots;
}

public function render() : void
{
$this->beforeRender();
$this->template->setFile(__DIR__ . '/Robots.latte');
$this->template->render();
}
}

0 comments on commit a50df5c

Please sign in to comment.