<?php
namespace SiteBundle\Controller;
use PanelBundle\Controller\BaseController;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
class RobotsController extends BaseController
{
public function indexAction()
{
$siteyolu = $this->ayarlar('siteYolu');
$veri='User-Agent: *
Allow:
Disallow: /seven/
Sitemap: '.$siteyolu.'sitemap.xml';
$response = new Response($veri);
$response->headers->set('Content-Type', 'txt');
return $response;
}
}