Skip to content

Commit

Permalink
Create Robots.php
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax committed Apr 17, 2018
1 parent 28a0bb8 commit 742754f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/Robots.php
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 ([email protected])
*
* 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;
}
}

0 comments on commit 742754f

Please sign in to comment.