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

Commit

Permalink
Merge branch 'hotfix/100' into develop
Browse files Browse the repository at this point in the history
Forward port #100
  • Loading branch information
weierophinney committed Mar 9, 2017
2 parents 1852148 + cc8b48b commit 80863d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/book/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ take the incoming request, perform actions based on it, and either complete the
response or pass delegation on to the next middleware in the queue.

```php
use Zend\Stratigility\MiddlewarePipe;
use Zend\Diactoros\Response;
use Zend\Diactoros\Server;
use Zend\Stratigility\MiddlewarePipe;
use Zend\Stratigility\NoopFinalHandler;

require __DIR__ . '/../vendor/autoload.php';

Expand All @@ -33,7 +34,7 @@ $app->pipe('/foo', function ($req, $res, $next) {
return $res;
});

$server->listen();
$server->listen(new NoopFinalHandler());
```

In the above example, we have two examples of middleware. The first is a
Expand Down

0 comments on commit 80863d7

Please sign in to comment.