src/Controller/LandingController.php line 26

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Form\ProductType;
  4. use App\Form\ProductUpdateType;
  5. use App\Service\MagentoService;
  6. use Doctrine\ORM\EntityManagerInterface;
  7. use MaximeGastaldo\MagentoConnectBundle\Traits\Repository\OrderServiceTrait;
  8. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  9. use Symfony\Component\HttpFoundation\File\Exception\FileException;
  10. use Symfony\Component\HttpFoundation\Request;
  11. use Symfony\Component\HttpFoundation\Response;
  12. use Symfony\Component\Routing\Annotation\Route;
  13. use PhpOffice\PhpSpreadsheet\Spreadsheet;
  14. use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
  15. use Symfony\Component\String\Slugger\SluggerInterface;
  16. class LandingController extends AbstractController
  17. {
  18.     use OrderServiceTrait;
  19.     /**
  20.      * @Route("/")
  21.      */
  22.     public function index(Request $request): Response
  23.     {
  24.         return $this->render('landing/index.html.twig',
  25.             []
  26.         );
  27.     }
  28. }