CQRS: Search Queries

CQRS has been getting a fair bit of attention in the last few months. One of the major benefits of using CQRS is that you can completely isolate reading data from writing data. This allows architecting around slices instead of layers. The less cross-cutting concerns exist in your application the…

The Binary Classification of Objects

After working on immutable data structures and dependency injection with Auryn I often find myself questioning class constructor style when doing code reviews. Recently I was reviewing a pull request that had this signature in it: public function __construct( RequestInterface $request, DateTime $now, $key, $ttl, $algorithm = 'HS256' ) { ... } A Funny Smell…

Configuration in Spark

Building on my last post about dependency injection I thought it would useful to talk configuring Auryn within the context of Spark. Basic Configuration The default configuration of Spark is in web/index.php. If you were to add configuration for PDO the easiest thing to do would be: $injector…