<?php
namespace App\Controller;
use ApiPlatform\Core\Serializer\JsonEncoder;
use App\Repository\BrandsRepository;
use App\Repository\DeliveryPersonRepository;
use App\Repository\OrdersInDeliveryRepository;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Serializer\SerializerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class BrandsController extends AbstractController
{
public function indexAction(BrandsRepository $brands_repository) {
$brands = $brands_repository->findAll();
// dd($brands); die();
return $this->render('@SyliusShop/Brands/index.html.twig',[
'brands' => $brands
]);
}
}