Re: PSR-7: missing method withServerParams()

2017-05-20 Thread Nicholas Ruunu
I believe you are overthinking this too much. To me it's more important to be able to trust that the ServerRequest has the correct, unmodified values from the $_SERVER global. Introducing a withServerParams method will jeopardise that trust and will be more error/bug prone. Regarding ServerReque

Re: Minimal HTTP middleware

2017-05-20 Thread Matthieu Napoli
Hi everyone, I've been following that discussion, I just want to react to a few things: Woody: This works perfectly well for simple systems and not so well for more > complex systems. For instance, if we have a complex application where there > is a "user" part and an "admin" part, the admin p

Re: Standard for CQRS and Event sourcing

2017-05-20 Thread Marco Perone
If I may add something to the discussion, I believe that the whole ES/CQRS process is too big for a single PSR. You could definitely use CQRS without ES and, theoreticallym you could even do ES without CQRS. Moreover, several components, like the command bus and the event bus, could be used on t