In the previous article, we learned how to use Query Objects. But simply returning entities or arrays of entities might[…]
Read moreTag: PHP
Query Object Pattern in Symfony
The Query Object Pattern is a pattern that can be used together with the Repository pattern. A query object is[…]
Read moreDoctrine Repositories should be collections without flush
More then a year ago I wrote the Repository Pattern article. This provides a good overview of the repository pattern.[…]
Read moreLeague OAuth 2.0 server with Symfony – Access Token and Refresh Token
In the previous article, we created the User, Client and Scope repositories. This week we will continue by creating the[…]
Read moreLeague OAuth 2.0 server with Symfony – Introduction
OAuth 2.0 is a standard to implement authorization with limited access over HTTP. We can use this add authentication to our[…]
Read morePHP Design Patterns: Adapter
The Adapter design pattern is, in my opinion, one of the most important design patterns. It’s crucial to understand when[…]
Read moreCollection of Value Objects with Doctrine
Over the last year, I have been working more and more with value objects in my applications. Value objects are[…]
Read moreSymfony Messenger: Queues and Workers
In the previous article, we were introduced to the Symfony Messenger component. We created a simple implementation of a message[…]
Read moreSymfony Messenger: Messages and Handlers
Symfony introduced the Messenger component in 4.1. There are bundles like prooph and simplebus that can be used for the same[…]
Read moreNamed Constructors for Domain Objects
Constructing objects is something we do all the time. But are we doing it correctly? Is there maybe a better[…]
Read more