Open in app

Sign In

Write

Sign In

Antonio Turdo
Antonio Turdo

22 Followers

Home

Lists

About

Aug 31

Handling deprecated routes using Symfony compiler passes

When we deprecate a route in our application, it can be useful to define tracking logic to run when that route is still being called, for example, to send logs or metrics. The simplest approach involves defining this logic in a service and invoking it at the beginning of all…

Symfony

2 min read

Symfony

2 min read


Jul 9

Applying SOLID principles with Symfony

[Disponibile anche in italiano] Recently, I worked on a project that requires dealing with the same problem using services provided by two different vendors. The business logic is shared, but some implementation details depend on the formats used and the specifications of each vendor. It is a perfect use case…

Symfony

2 min read

Symfony

2 min read


Aug 10, 2021

Performance optimizations with Doctrine

In Symfony (or plain PHP) projects Doctrine allows you to focus on domain concepts and implement application use cases quickly, letting the library generate both write and read SQL queries. Lazy loading One of the mechanisms used by Doctrine is lazy loading. When we access, for the first time, an association present…

Doctrine

3 min read

Doctrine

3 min read


Feb 28, 2021

How to deserialize a REST request with Symfony forms

In my previous post we saw, in the context of a REST application created with Symfony and PHP8, how to obtain a DTO as a parameter of an action, deserializing the json content of the request body with the Symfony serializer component and exploiting the information available in the URI…

Symfony

2 min read

Symfony

2 min read


Feb 7, 2021

Using PHP8 attributes with Symfony Value Resolvers

Version 8 of PHP was released just over 2 months ago, and among the most important changes there is the introduction of attributes, which will allow you to create with native syntax what has been achieved up to now with PHPDoc and Doctrine annotations. The Symfony framework makes extensive use…

Symfony

2 min read

Symfony

2 min read

Antonio Turdo

Antonio Turdo

22 Followers

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams