src/SiteBundle/Controller/RobotsController.php line 12

Open in your IDE?
  1. <?php
  2. namespace SiteBundle\Controller;
  3. use PanelBundle\Controller\BaseController;
  4. use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  5. use Symfony\Component\HttpFoundation\Response;
  6. class RobotsController extends BaseController
  7. {
  8.     public function indexAction()
  9.     {
  10.         $siteyolu $this->ayarlar('siteYolu');
  11.         $veri='User-Agent: *
  12. Allow: 
  13. Disallow: /seven/
  14. Sitemap: '.$siteyolu.'sitemap.xml';
  15.         $response = new Response($veri);
  16.         $response->headers->set('Content-Type''txt');
  17.         return $response;
  18.     }
  19. }