23 lines
551 B
PHP
23 lines
551 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use Doctrine\ORM\EntityManagerInterface;
|
|
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
|
|
|
class InsuranceController extends Controller
|
|
{
|
|
public function listen(Request $req, EntityManagerInterface $em)
|
|
{
|
|
$payload = $req->request->all();
|
|
error_log(print_r($payload, true));
|
|
|
|
return $this->json([
|
|
'success' => true,
|
|
'payload' => $payload,
|
|
]);
|
|
}
|
|
}
|