<?php
namespace Modules\Additional\Specifique\Client174\Modules\Utilisateur\Controller;

use GuzzleHttp\Psr7\Response;
use Modules\Additional\Specifique\Client174\Modules\Panier\Service\UpdateSISpecifique;
use Skeleton\Controller\Controller;

class MaSessionSpecifiqueController extends Controller
{
    /**
     * @return Response
     */
    public function updateSiAction()
    {
        $post = $this->request->getParsedBody();

        $si = (new UpdateSISpecifique())->updateSI($this->pdo, $post['OUPA_CENTRE_EMETTEUR']);

        return new Response(200, [], (string) json_encode(['SI' => $si]));
    }
}
