From 742754fb23c0600f162f4fea298ade7a108f6780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Pel=C3=AD=C5=A1ek?= Date: Tue, 17 Apr 2018 13:49:48 +0200 Subject: [PATCH] Create Robots.php --- src/Robots.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/Robots.php diff --git a/src/Robots.php b/src/Robots.php new file mode 100644 index 0000000..cf6671f --- /dev/null +++ b/src/Robots.php @@ -0,0 +1,31 @@ +. + */ + +declare(strict_types = 1); + +namespace Nepttune\Component; + +final class Robots extends BaseComponent +{ + /** @var array */ + private $robots; + + public function __construct(array $robots) + { + $this->robots = $robots; + } + + protected function beforeRender() : void + { + $this->template->robots = $this->robots; + } +}