-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of Nepttune (https://www.peldax.com) | ||
* | ||
* Copyright (c) 2018 Václav Pelíšek (info@peldax.com) | ||
* | ||
* This software consists of voluntary contributions made by many individuals | ||
* and is licensed under the MIT license. For more information, see | ||
* <https://www.peldax.com>. | ||
*/ | ||
|
||
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; | ||
} | ||
} |