Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Loïc Faugeron:
PragmatiClean - Command Bus
Sep 20, 2017 @ 14:41:57

Continuing on from the first part of the series Loïc Faugeron has posted the next tutorial in the "PragmatiClean" series covering the use of the Command Bus pattern in your application.

The Command Bus pattern relies on 3 types of classes:

The first one is the Command [...] next is the Command Handler [and] finally there's a Command Bus interface allowing us to build Middlewares.

For each of these parts of the design pattern he covers what the part is and how it fits into the overall structure the pattern defines. He also looks at how it allows for easier adherence to the ideas of both "clean" and "pragmatic" code. The post ends with an example of implementing the Command Bus pattern in a Symfony-based application, building out each part and their integration.

tagged: pragmaticlean commandbus designpattern tutorial series part2

Link: https://gnugat.github.io/2017/09/20/pragmaticlean-command-bus.html


Trending Topics: