Open Ocramius opened 7 years ago
See following example of a CQRS-style routing. The read side is re-used as a fallback of the write side. Still under discussion: shared mutable state in the form component.
As discussed with @weierophinney, it's better to return $next($req, $res)->withStatusCode(400); rather than passing down a modified request.
return $next($req, $res)->withStatusCode(400);
See following example of a CQRS-style routing. The read side is re-used as a fallback of the write side. Still under discussion: shared mutable state in the form component.