-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Description
| Q | A |
|---|---|
| Bug report? | yes |
| Feature request? | no |
| BC Break report? | no |
| RFC? | no |
| Symfony version | 3.4 |
<?php
namespace App\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
class IndexController extends AbstractController
{
/**
* @Route(name="index")
*/
public function indexAction()
{
return $this->redirectToRoute('redirect');
}
/**
* @Route("/redirect", name="redirect")
*/
public function redirectAction()
{
return new Response('<html><body></body></html>');
}
}