So I have a User entity in a #Symfony project with an int type $id property. And something deep in the framework is trying to assign a string value to the $id which is throwing critical type errors.
WTH. Am I supposed to make User::$id a string|int type? No thanks. It's in the framework so out of my hands. Some token unserializing step.
Medium is a fantastic source for PHP and other programming news. Investing in membership is recommended as you can access everything you want to read. It’s worth the investment to boost your career via the helpful articles and tutorials. Our small compensation from this link helps cover expenses for the Symfony Station articles you enjoy on it. https://medium.com/@mobileatom/membership#Symfony#Drupal#PHP#Programming Plus they are big supporters of the Fediverse.
Have an idea for an article for us to write on Symfony Station? Contact us here on Mastodon! And please sign up for our "newsletter" to get the latest news communiques and original content delivered to your inbox. https://www.symfonystation.com/Contact :symfony: :drupal: :php: #Symfony#PHP#Drupal
From the Symfony book: Managing asynchronous code with Symfony is the job of the Messenger Component. When some logic should be executed asynchronously, send a message to a messenger bus. The bus stores the message in a queue and returns immediately to let the flow of operations resume as fast as possible. https://symfony.com/doc/current/the-fast-track/en/18-async.html#understanding-messenger#Symfony :symfony: