Skip to content

Commit a872916

Browse files
committed
Update Zend Diactoros and add Narrowspark’s emitter since Diactoros no longer includes an emitter.
1 parent 84a383e commit a872916

File tree

3 files changed

+202
-16
lines changed

3 files changed

+202
-16
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
"php": "7.1.*",
1414
"php-di/php-di": "^6.0",
1515
"relay/relay": "2.x@dev",
16-
"zendframework/zend-diactoros": "^1.7",
16+
"zendframework/zend-diactoros": "^2.1",
1717
"middlewares/fast-route": "^1.0",
18-
"middlewares/request-handler": "^1.1"
18+
"middlewares/request-handler": "^1.1",
19+
"narrowspark/http-emitter": "^0.7.0"
1920
},
2021
"autoload": {
2122
"psr-4": {

composer.lock

Lines changed: 198 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
use FastRoute\RouteCollector;
77
use Middlewares\FastRoute;
88
use Middlewares\RequestHandler;
9+
use Narrowspark\HttpEmitter\SapiEmitter;
910
use Relay\Relay;
1011
use Zend\Diactoros\Response;
11-
use Zend\Diactoros\Response\SapiEmitter;
1212
use Zend\Diactoros\ServerRequestFactory;
1313
use function DI\create;
1414
use function DI\get;

0 commit comments

Comments
 (0)