From RabbitMqBundle to PhpEnqueue with Symfony Messenger

Today i try to explain how i migrate from RabbitMqBundle to PhpEnqueue using the Messenger component of Symfony. Stack PHP 7.2 Symfony 4.1 Starting Situation I have well installed RabbitMQ following simple tutorial Symfony 4 and RabbitMQ. So in my configuration file i have the following configuration: #config/packages/old_sound_rabbit_mq.yaml old_sound_rabbit_mq: enable_collector: false connections: default: url: ‘%env(RABBITMQ_URL)%’ lazy:… Read More From RabbitMqBundle to PhpEnqueue with Symfony Messenger

CQRS is easy with Symfony 4 and his Messenger Component

Today i want to show you how to use The Messenger Component of Symfony. Very useful when your project implements the CQRS pattern. With an example, simplicity of use and practicality will be evident. Let’s assume that we have a service like this one: <?php namespace App\Domain\Service\Customer; use App\Domain\Command\Customer\DeleteCustomerCommand; use App\Domain\CommandHandler\Customer\DeleteCustomerCommandHandlerInterface; use App\Domain\Exception\Customer\CriteriaNotAllowedException; use App\Domain\Query\Customer\GetCustomerListQuery; use… Read More CQRS is easy with Symfony 4 and his Messenger Component

Symfony + Docker + Behat + BrowserStack: testing your app like a boss

Introduction My colleague Damien Gilbrin has a lot of experience about Behat. He just partecipate to a MeetUp where he explained how to properly use Behat also integrating Selenium and BrowserStack. Here the presentation in french language: Behat : https://www.damiengilbrin.fr/behat BrowserStack : https://www.damiengilbrin.fr/browserstack Now i will show you the practical example that Damien publish on github Stack… Read More Symfony + Docker + Behat + BrowserStack: testing your app like a boss

Symfony2: Facebook Connect with HWIOAuthBundle and SonataAdminBundle

I have a project with SonataAdminBundle for admin side and FosUserBundle for user management. I override user management part in act to customize user entity, user login form ecc. In my case override files are in src/Application/UserBundle.  I had some difficulties to set properly HWIOAuthBundle, so i wrote what i did, and I hope it can help… Read More Symfony2: Facebook Connect with HWIOAuthBundle and SonataAdminBundle

12 factor App – Comment scaler vos applications ?

QU’EST-CE QUE LE « 12 FACTOR APP » Le « 12 Factor app » est un manifeste qui propose 12 bonnes pratiques concernant le développement d’applications web. Ce manifeste, écrit par Adam Wiggins (co-fondateur d’Heroku), est né de ses observations et de son expérience dans le développement et le déploiement d’applications web. Ce manifeste s’applique à tous les langages… Read More 12 factor App – Comment scaler vos applications ?