<?php
namespace App\Controller;
use App\Repository\FeatureRepository;
use App\Repository\ProductsRepository;
use App\Repository\ToolSetsRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class DesignToolsController extends AbstractController
{
#[Route('/design_tools', name: 'design_tools')]
public function index(
ProductsRepository $productsRepository,
ToolSetsRepository $toolSetsRepository,
FeatureRepository $featureRepository
): Response {
return $this->render('design_tools/index.html.twig', [
'controller_name' => 'Design Tools',
'products' => $productsRepository->all(),
'toolSets' => $toolSetsRepository->all(),
'features' => $featureRepository->all(),
]);
}
}