PHP code example of nepttune / robots
1. Go to this page and download the library: Download nepttune/robots library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nepttune / robots example snippets
class ExamplePresenter implements IPresenter
{
/** @var \Nepttune\Component\IRobotsFactory */
protected $iRobotsFactory;
public function __construct(\Nepttune\Component\IRobotsFactory $IRobotsFactory)
{
$this->iRobotsFactory = $IRobotsFactory;
}
protected function createComponentRobots() : \Nepttune\Component\Robots
{
return $this->iRobotsFactory->create();
}
}