Symfony toolbar

42 Views Asked by At

after upgrading from Symfony version 6.3 to 6.4, I'm receiving this PHP message: [debug] Notified event "kernel.terminate" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelTerminate". It's not a problem as it disappears in production, but the issue is that this message gets appended to the end of my cURL calls, thus preventing their execution. I want to keep my toolbar and not have to switch my debug mode to false. Thank you for your responses.

In resume that looke like = json_encode(cURL call).PHP_message;

Without debugg (in prod) PHP_message is dropped out and the encoded JSON is correctly sent.

    $options = [
        'headers' => [
            'Authorization' => 'Bearer ' . $bearer,
            'Content-Type' => 'application/json',
        ],
        $param => $aData,
    ];

    return $this->client->request($requete, self::URL . $where, $options);    

Just a simple request... I would can be able to use the toolbar even with curl call

0

There are 0 best solutions below