<?php
namespace App\Controller;
use App\Entity\Services;
use App\Entity\Settings;
use App\Entity\SubServices;
use App\Service\Api;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Mailer\MailerInterface;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Contracts\Translation\TranslatorInterface;
class TermsController extends AbstractController
{
/**
* @Route("/terms/terms", name="terms")
*/
public function index(Request $request, MailerInterface $mailer, TranslatorInterface $translator, Api $apiService)
{
$data['services'] = $apiService->getAllServices();
$data["icons"] = $apiService->getServicesIcons();
return $this->render('terms/terms.html.twig', $data);
}
}