Skip to content
Advertisement

Tag: symfony

Symfony Exception Subscriber not triggered

I need to format error messages and output it in JSON format. I have the following event subscriber: And following configuration in ./config/services.yaml This event subscriber is working when e.g. controller throws error. But if I have some other error e.g. wrong DI injection then output is still in Html format and as Symfony error page. How to make that

Symfony knp_paginator query with $_GET

I am a beginner and I try to write a query for a search input using kpn_paginator but I get an error: One of listeners must count and slice given target I can not find the solution, I checked some other topic but cannot understand how to do it in my code. My else work well but my if not.

How to use Symfony Messenger component in standalone code to send AMQP messages

We’re using Symfony Messenger in a Symfony 5 project to integrate with RabbitMQ. It works fine when sending messages within Symfony, but I need the ability to use the Messenger component to send messages from some legacy PHP applications that are not built with the Symfony framework. Under Symfony, it handles all the magic by injecting the MessageBusInterface and all

composer require phpoffice/phpspreadsheet don’t work

initially, I needed a library that will help me upload data to Excel, found this library and then there was a problem i try to install composer require phpoffice/phpspreadsheet but i have problem I don’t understand where the error comes from, because there is a dependency “ext-spltype”: “*” in my composer.json this is my composer.json i also try to install

Advertisement