diff --git a/docs/execution.md b/docs/execution.md index d17de9d..a4f0ffe 100644 --- a/docs/execution.md +++ b/docs/execution.md @@ -16,9 +16,11 @@ Sending handlers), etc. The initial `web/index.php` installation runs four middleware handlers: -- _Radar\Adr\Handler\ExceptionHandler_ as a final fallback to catch exceptions. +- _Radar\Adr\Handler\SendingHandler_ to pass along the inbound request without modification, and send back the outbound response after all other middlware have processed it; -- _Radar\Adr\Handler\RoutingHandler_ to determine the _Route_ based on the _ServerRequest_, +- _Radar\Adr\Handler\ExceptionHandler_ as a final fallback to catch exceptions; + +- _Radar\Adr\Handler\RoutingHandler_ to determine the _Route_ based on the _ServerRequest_; - _Radar\Adr\Handler\ActionHandler_ to use the _Route_ for the action-domain-responder activity: @@ -32,8 +34,6 @@ The initial `web/index.php` installation runs four middleware handlers: - A _Responder_ callable is invoked with the _Domain_ output; the _Responder_ then builds the outgoing HTTP _Response_ message. -- _Radar\Adr\Handler\SendingHandler_ to send the _Response_. - You can prepend, append, or replace these handlers in `web/index.php` with your own middleware. ### Navigation diff --git a/web/index.php b/web/index.php index 061cdac..ba73546 100644 --- a/web/index.php +++ b/web/index.php @@ -21,10 +21,10 @@ */ // pipeline middleware +$adr->middle('Radar\Adr\Handler\SendingHandler'); $adr->middle('Radar\Adr\Handler\ExceptionHandler'); $adr->middle('Radar\Adr\Handler\RoutingHandler'); $adr->middle('Radar\Adr\Handler\ActionHandler'); -$adr->middle('Radar\Adr\Handler\SendingHandler'); // routes $adr->get('Hello', '/{name}?', function (array $input) {