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'
Browse files Browse the repository at this point in the history
Close #100
  • Loading branch information
weierophinney committed Mar 9, 2017
2 parents 818b2ab + cc8b48b commit a8c6bd6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ Versions prior to 1.0 were originally released as `phly/conduit`; please visit
its [CHANGELOG](https://github.com/phly/conduit/blob/master/CHANGELOG.md) for
details.

## 2.1.0 - TBD

### Added

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Nothing.

## 2.0.2 - TBD

### Added
Expand Down
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 a8c6bd6

Please sign in to comment.