<?php
namespace Claromentis\Core\Psr7Bridge;

$GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("_4c05b95d6bb1191967ccfe5" . "8bffbbd86" => base64_decode("b25LZXJu" . "ZWxWaWV3"));
use Claromentis\Core\Event\EventSubscriberInterface;
use Psr\Http\Message\ResponseInterface;
use Symfony\Bridge\PsrHttpMessage\HttpFoundationFactoryInterface;
use Symfony\Component\HttpKernel\Event\ViewEvent;
use Symfony\Component\HttpKernel\KernelEvents;




class ResponseConverter implements EventSubscriberInterface
{
    protected $converter;
    public function __construct(HttpFoundationFactoryInterface $_9a50aae6960d3ff99682e19d1bf7ca45)
    {
        $this->converter = $_9a50aae6960d3ff99682e19d1bf7ca45;
    }
    
    
    
    
    
    
    public static function getSubscribedEvents()
    {
        return array(KernelEvents::VIEW => $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_4c05b95d" . "6bb119196" . "7ccfe58bf" . "fbbd86"]);
    }
    public function onKernelView(ViewEvent $event)
    {
        $_fd5a3a643834299cbdadfc3540ba0bcb = $event->getControllerResult();
        if (!$_fd5a3a643834299cbdadfc3540ba0bcb instanceof ResponseInterface) {
            return;
        }
        $event->setResponse($this->converter->createResponse($_fd5a3a643834299cbdadfc3540ba0bcb));
    }
}