src/Controller/MainController.php line 15
<?phpnamespace App\Controller;use App\Repository\EgdDeclarationRepository;use App\Repository\MetaRepository;use App\Service\Egd\EgdApiClient;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class MainController extends AbstractController{#[Route('/', name: 'app_egd_declaration_index', methods: ['GET'])]public function index(EgdDeclarationRepository $repository, EgdApiClient $apiClient): Response{// $response = $apiClient->test();return $this->render('egd_declaration/index.html.twig', ['declarations' => $repository->findBy([], ['id' => 'DESC']),]);}}