Tag: compile
-
How to optimize existing code using Symfony’s Design Pattern Strategy and Compiler Pass?
When you’re developing a project, you often see a collection of ifs one after the other, or a huge switch / case that executes code according to a state. This code is often unreadable and difficult to maintain. But did you know that there’s a design pattern that avoids this? Symfony makes it easy to…