src/Controller/ContactusController.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use telesign\sdk\messaging\MessagingClient;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class ContactusController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/contacto", name="app_contactus")
  11.      */
  12.     public function index(): Response
  13.     {
  14. //        $customer_id = "135BBB56-B8CC-404C-8FE1-09219DC133FC";
  15. //        $api_key = "LJmzI3AhkNQXsVryn4Xrk2WRhIi2NzTaJWM3YNxx3PpKDewhMladeGj6Yw82Ti/R7j+4h7wMUa1pGfkbC1FADQ==";
  16. //        $phone_number = "351964858280";
  17. //        $message = "Olá Fábio, isso é um teste de sms que vem do servidor, neste momento é com nr a mostra, depois fica com nome comercial.. Yurii";
  18. //        $message_type = "ARN";
  19. //        $messaging = new MessagingClient($customer_id, $api_key);
  20. //        $response = $messaging->message($phone_number, $message, $message_type);
  21. //
  22. //        dd($response);
  23.         return $this->render('contactus/index.html.twig', [
  24.             'titlePage' => 'FabiosRoadStop - Contactos',
  25.         ]);
  26.     }
  27. }