src/Controller/DesignToolsController.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Repository\FeatureRepository;
  4. use App\Repository\ProductsRepository;
  5. use App\Repository\ToolSetsRepository;
  6. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  7. use Symfony\Component\HttpFoundation\Response;
  8. use Symfony\Component\Routing\Annotation\Route;
  9. class DesignToolsController extends AbstractController
  10. {
  11.     #[Route('/design_tools'name'design_tools')]
  12.     public function index(
  13.         ProductsRepository $productsRepository,
  14.         ToolSetsRepository $toolSetsRepository,
  15.         FeatureRepository $featureRepository
  16.     ): Response {
  17.         return $this->render('design_tools/index.html.twig', [
  18.             'controller_name' => 'Design Tools',
  19.             'products' => $productsRepository->all(),
  20.             'toolSets' => $toolSetsRepository->all(),
  21.             'features' => $featureRepository->all(),
  22.         ]);
  23.     }
  24. }