Nos articles taggués « symfony »
Aggressive Caching with Symfony HTTP Client
The Symfony CachingHttpClient The HttpClient component comes with a client that can cache responses when possible. It means the client won’t issue another request to the server if the response is already available in the cache. It works like your browser by reading some headers like…
Lire la suite de l’article Aggressive Caching with Symfony HTTP Client
How to Fix Memory Leak in Doctrine Migrations
I had to write a Doctrine migration to fix some bad data. Unfortunately there was so much data (~600K records) that the migration leaked. The memory consumption reaches about 12Gb! That’s not really acceptable! Usually, when there is a leak in Doctrine DBAL (not the ORM), it comes…
Lire la suite de l’article How to Fix Memory Leak in Doctrine Migrations
How TaggedLocator Can Help You Design Better Symfony Application
One of the features I love the most in Symfony is the TaggedLocator. It seems to not be well known and I believe it deserves more visibility! That’s why I want to explain how it works. I often see blog posts about ServiceSubscriberInterface and how to use it. In my humble opinion, …
Lire la suite de l’article How TaggedLocator Can Help You Design Better Symfony Application
SymfonyCon at Disneyland Paris for the 15+2th birthday of Symfony
After more than two years of waiting, SymfonyCon 2020 2021 2022 was held at Disneyland Paris on November 17th and 18th. We were delighted to meet community members, other members of the Core Team, as well as contributors who have been involved in Symfony for years. The venue, very…
Lire la suite de l’article SymfonyCon at Disneyland Paris for the 15+2th birthday of Symfony
SymfonyCon Disneyland Paris pour les 15+2 ans de Symfony !
Après plus de deux ans d’attente, la SymfonyCon 2020 2021 2022 s’est tenue à Disneyland Paris les 17 et 18 novembre derniers. Nous étions ravis d’y retrouver des membres de la communauté, les autres membres de la Core Team, ainsi que de rencontrer en personne des contributeurs qui…
Lire la suite de l’article SymfonyCon Disneyland Paris pour les 15+2 ans de Symfony !
We are open-sourcing a silly Slack bot, guess what it does!
At JoliCode we use Slack to communicate. And to bring fun to our daily life, we have created a #monologue channel where we can share our thoughts, our feelings, our dreams, our fears, our jokes, our memes, our pictures, our videos, our music, our links, our code, our life. But we…
Lire la suite de l’article We are open-sourcing a silly Slack bot, guess what it does!
Use Bayesian Averages to Improve Rating Sorting in your Elasticsearch Index
EDIT: There were two typos in this article. In the formula we were wrong about the position of one of the arguments which made it wrong, we invite you to check again the formula so you can fix it too. And in the Elasticsearch painless script, a subtlety of the Java language will…
SymfonyLive Paris 2022 – En chair et en os
Après 2 ans d’absence, le SymfonyLive faisait son retour en physique à la Cité Internationale Universitaire de Paris et nous a permis d’assister à un nouveau cycle de conférences de qualité ! Petit tour ce que nous y avons (re)découvert ! Keynote L’ouverture du SymfonyLive Paris…
Lire la suite de l’article SymfonyLive Paris 2022 – En chair et en os
Using Symfony Form in WordPress
What a strange idea! Once upon a time, a developer was asked to move a form from one application to another. The source application was a Symfony app. The target application was WordPress, the CMS that runs the Web. Follow us in that journey that will take you to the edge of what…
Symfony Messenger 💛 systemd
In this article we will explore how to use systemd properly to run Symfony Messenger workers. What are Symfony Messenger and systemd? Symfony documentation says: The Messenger component helps applications send and receive messages to / from other applications or via message queues.…
Symfony World Online 2021, édition chocolat chaud au coin du feu
À l’instar de 2020, cette conférence Symfony d’hiver s’est déroulée en ligne. Un événement que nous aurions tous aimé vivre en physique pour célébrer la sortie de Symfony 6.0, mais ça ne sera que partie remise pour (on l’espère 🤞) dans quelques mois. Retour sur ces deux journées…
Lire la suite de l’article Symfony World Online 2021, édition chocolat chaud au coin du feu
Rate limit your Symfony APIs!
Sometimes, you need to put some custom rate limits on your APIs! In this article I’ll show you how you can combine the symfony/rate-limiter component and some usual controllers. RateLimit configuration The goal here is to have the following rate limit configuration works thanks to…
Forum PHP 2021 : l’édition des retrouvailles 🤗
Après une édition en ligne en 2020, quelle joie d’enfin se retrouver, de pouvoir partager un verre (de punch 😇) à la main, un toast dans l’autre. C’est au 1er étage du Novotel Paris-Est que nous nous sommes retrouvés, et où dans son ambiance feutrée, nous avons pu de nouveau échanger…
Lire la suite de l’article Forum PHP 2021 : l’édition des retrouvailles 🤗
Display Symfony form errors, without any submit
Imagine our database contains some invalid entries and we build a form allowing us to complete the entity: how can our users know which fields are invalid and need completion?! Building a Form with that invalid entity and displaying it to the user is not enough, no errors are going…
Lire la suite de l’article Display Symfony form errors, without any submit
Symfony HttpClient and sequential requests assertions
Symfony/HttpClient is a powerful component to perform HTTP(s) requests. It already embeds a MockHttpClient and MockResponse to ease testing. When a method performs only one request, it’s very convenient to use, but when the class performs many request and you want to make assertions…
Lire la suite de l’article Symfony HttpClient and sequential requests assertions
How to dynamically validate some data with Symfony Validator
From time to time, you have to validate data according to another value, or group of values. We can do that quickly with plain PHP in a callback, or in a dedicated constraints like following: class MyDto { public bool $sendEmail; public string $email; #[Assert\Callback()]…
Lire la suite de l’article How to dynamically validate some data with Symfony Validator
Quoi de neuf sous le soleil de la SymfonyWorld Online Summer Edition 2021 ?
L’écosystème Symfony propose de nombreuses conférences chaque année, localisées et mondiales. En fin de semaine dernière avait lieu SymfonyWorld Online 2021 Summer Edition, qui est donc une conférence internationale regroupant en un événement l’ensemble de la communauté. Dans cet…
Dites-nous tout !
Un de nos articles vous a aidé dans votre travail et vous voulez nous remercier ?
Vous avez trouvé une typo ou une erreur ?
N’hésitez pas à nous le faire savoir
en nous envoyant un message