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 9970b7c + 2c18525 commit 1852148
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/book/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ 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;

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

$app = new MiddlewarePipe();
$app = new MiddlewarePipe();
$app->setResponsePrototype(new Response());

$server = Server::createServer($app, $_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);

// Landing page
Expand Down

0 comments on commit 1852148

Please sign in to comment.