Skip to content

Commit

Permalink
Change styling in MiddlewareIntegration
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Nov 25, 2023
1 parent 99c1990 commit 8dea6e3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Middleware/MiddlewareIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,13 @@ protected function dispatcher(ResponseInterface $response, $stack)

$wantZend = $this->preferred === 'stratigility';

if (($empty || (! $wantZend)) || ! $hasZend) return $dispatcher;
if (($empty || $wantZend) && $hasZend)
{
$pipe = new MiddlewarePipe;

$pipe = new MiddlewarePipe;
$dispatcher = new StratigilityDispatcher($pipe, $stack, $response);
}

return new StratigilityDispatcher($pipe, $stack, $response);
return $dispatcher;
}
}

0 comments on commit 8dea6e3

Please sign in to comment.