New rule emphasizing the importance of SOLID principles

Symfony
Symfony
Jan 17 · 1 min read

SymfonyInsight’s main aim is to help you manage and increase the quality of your applications. A great way to achieve this is to follow good practices and standards, both from Symfony and from programming in general.

One of these good practices is to follow the SOLID principles, a famous set of concepts which help developers create high quality software architectures. Following the SOLID principles brings many advantages to your projects:

  • it decouples your logic in multiple independent components which you can easily unit test;
  • it eases migration by avoiding your project to be tightly linked to its dependencies;
  • it helps newcomers understand the most important parts of your project by exposing only the necessary public API;

This new rule detects when you could have used the SOLID principles in the context of Symfony by providing interfaces you could have used instead of implementations. This will also help you migrate to Symfony 4 if you need to, as several new features of Symfony 4 are depending on the usage of SOLID principles.

Read more about this rule on its dedicated documentation page.

And as always, feel free to contact us if you have any question or feedback!

Symfony

Written by

Symfony

Official stories and announcements from the Symfony project.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade