![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/app/bundles/SmsBundle/Controller/ |
<?php namespace Mautic\SmsBundle\Controller; use Mautic\SmsBundle\Callback\HandlerContainer; use Mautic\SmsBundle\Exception\CallbackHandlerNotFound; use Mautic\SmsBundle\Helper\ReplyHelper; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; class ReplyController extends AbstractController { public function __construct( private HandlerContainer $callbackHandler, private ReplyHelper $replyHelper ) { } /** * @return Response * * @throws \Exception */ public function callbackAction(Request $request, $transport) { define('MAUTIC_NON_TRACKABLE_REQUEST', 1); try { $handler = $this->callbackHandler->getHandler($transport); } catch (CallbackHandlerNotFound) { throw new NotFoundHttpException(); } return $this->replyHelper->handleRequest($handler, $request); } }