Skip to content

Commit 742754f

Browse files
authored
Create Robots.php
1 parent 28a0bb8 commit 742754f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

src/Robots.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)