Files
kupshop/bundles/KupShop/ContentBundle/Controller/RobotstxtController.php
2025-08-02 16:30:27 +02:00

27 lines
622 B
PHP

<?php
namespace KupShop\ContentBundle\Controller;
use KupShop\ContentBundle\View\RobotstxtView;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class RobotstxtController extends AbstractController
{
/**
* @var Response
*
* @return Response
*
* @Route("/robots.txt")
*/
public function robotstxtAction(RobotstxtView $view)
{
$response = $view->getResponse();
$response->headers->set('Content-Type', 'text/plain');
return $response;
}
}