Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit feeddec

Browse files
committed
Merge branch 'hotfix/287'
Close #287
2 parents 4e0fe3b + f9f5078 commit feeddec

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ Initial stable release.
3636
documentation links to the RC5 -> v1 migration guide in both the CHANGELOG as
3737
well as the error messages emitted, ensuring users can locate the correct
3838
documentation in order to upgrade.
39+
- [#287](https://github.com/zendframework/zend-expressive/pull/287) updates the
40+
"standalone" quick start to reference calling `$app->pipeRoutingMiddleware()`
41+
and `$app->pipeDispatchMiddleware()` per the changes in RC6.
3942

4043
## 1.0.0rc7 - 2016-01-21
4144

doc/book/getting-started/standalone.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ $app->get('/', function ($request, $response, $next) {
6767
return $response;
6868
});
6969

70+
$app->pipeRoutingMiddleware();
71+
$app->pipeDispatchMiddleware();
7072
$app->run();
7173
```
7274

@@ -77,6 +79,21 @@ $app->run();
7779
> your bootstrap is invoked for unknown URLs. We'll cover that in a later
7880
> chapter.
7981
82+
> ### Routing and dispatching
83+
>
84+
> Note the lines from the above:
85+
>
86+
> ```php
87+
> $app->pipeRoutingMiddleware();
88+
> $app->pipeDispatchMiddleware();
89+
> ```
90+
>
91+
> Expressive's `Application` class provides two separate middlewares, one for
92+
> routing, and one for dispatching middleware matched by routing. This allows
93+
> you to slip in validations between the two activities if desired. They are
94+
> not automatically piped to the application, however, to allow exactly that
95+
> situation, which means they must be piped manually.
96+
8097
## 5. Start a web server
8198
8299
Since we're just testing out the basic functionality of our application, we'll

0 commit comments

Comments
 (0)