Category: rabbitmq

Swiftmailer and Symfony Messenger not working with AMQP and rabbitmq within docker

I am desperate with a task. I bassicly tried everything and can’t get to solution. I am trying to send mail with Swiftmailer asynchronously by using the SymMessenger, AMQP, rabbitmq with docker. Everything is is installed, but within API platform…

How can I avoid calling blocking function in twig templates?

I developed notification system for our project. public function notifyAction(NotifierInterface $notifier, EmployeeRepositoryInterface $repository): void { $notifier->send(new UserRegistered($repository->get(30))); } Here is notification: class UserRegistered implements SmsNotificationInterface { private Employee $employee; public function __construct(Employee $employee) { $this->employee = $employee; } public function…

composer require dependency injection, but it is already there

“name”: “symfony/dependency-injection”, “version”: “v5.0.4”, “source”: { “type”: “git”, “url”: “https://github.com/symfony/dependency-injection.git”, “reference”: “86338f459313525dd95f5a012f8a9ea118002f94” }, Thats my composer.lock when Im trying to run composer require php-amqplib/rabbitmq-bundle get this stuff Your requirements could not be resolved to an installable set of packages. Problem…