src/Controller/TermsController.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Entity\Services;
  4. use App\Entity\Settings;
  5. use App\Entity\SubServices;
  6. use App\Service\Api;
  7. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  8. use Symfony\Component\HttpFoundation\Request;
  9. use Symfony\Component\HttpFoundation\Response;
  10. use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
  11. use Symfony\Component\Mailer\MailerInterface;
  12. use Symfony\Component\Routing\Annotation\Route;
  13. use Symfony\Contracts\Translation\TranslatorInterface;
  14. class TermsController extends AbstractController
  15. {
  16.     /**
  17.      * @Route("/terms/terms", name="terms")
  18.      */
  19.     public function index(Request $requestMailerInterface $mailerTranslatorInterface $translatorApi $apiService)
  20.     {
  21.         $data['services'] = $apiService->getAllServices();
  22.         $data["icons"] = $apiService->getServicesIcons();
  23.         return $this->render('terms/terms.html.twig'$data);
  24.     }
  25. }