src/Controller/DefaultController.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class DefaultController extends AbstractController
  7. {
  8.     #[Route('/download-page'name'download_page')]
  9.     public function downloadPage(): Response
  10.     {
  11.         return $this->render('default/download.html.twig');
  12.     }
  13.     #[Route('/download'name'download')]
  14.     public function download(): Response
  15.     {
  16.         return $this->file('download/Nameless.rar''Nameless.rar');
  17.     }
  18. }