We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28a0bb8 commit 742754fCopy full SHA for 742754f
src/Robots.php
@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+/**
4
+ * This file is part of Nepttune (https://www.peldax.com)
5
+ *
6
+ * Copyright (c) 2018 Václav Pelíšek (info@peldax.com)
7
8
+ * This software consists of voluntary contributions made by many individuals
9
+ * and is licensed under the MIT license. For more information, see
10
+ * <https://www.peldax.com>.
11
+ */
12
13
+declare(strict_types = 1);
14
15
+namespace Nepttune\Component;
16
17
+final class Robots extends BaseComponent
18
+{
19
+ /** @var array */
20
+ private $robots;
21
22
+ public function __construct(array $robots)
23
+ {
24
+ $this->robots = $robots;
25
+ }
26
27
+ protected function beforeRender() : void
28
29
+ $this->template->robots = $this->robots;
30
31
+}
0 commit comments