Skip to content

Commit 856527e

Browse files
authored
Fixed error with ResponsePrototype
1 parent 9e8d2d2 commit 856527e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Mouf/Mvc/Splash/SplashMiddleware.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Mouf\Mvc\Splash\Routers\RouterInterface;
66
use Mouf\Mvc\Splash\Controllers\Controller;
7+
use Zend\Diactoros\Response;
78
use Zend\Stratigility\MiddlewarePipe;
89

910
/**
@@ -25,6 +26,7 @@ class SplashMiddleware extends MiddlewarePipe
2526
public function __construct(array $routers)
2627
{
2728
parent::__construct();
29+
$this->setResponsePrototype(new Response());
2830
foreach ($routers as $router) {
2931
if ($router->isActive()) {
3032
$this->pipe($router->getPath(), $router->getMiddleware());

0 commit comments

Comments
 (0)