Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit b130397

Browse files
committed
Call termintate on all apps
1 parent a7e0f7e commit b130397

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Stack/UrlMap.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,8 @@ public function terminate(Request $request, Response $response)
7676
{
7777
$pathInfo = rawurldecode($request->getPathInfo());
7878
foreach ($this->map as $path => $app) {
79-
if (0 === strpos($pathInfo, $path)) {
80-
if ($app instanceof TerminableInterface) {
81-
$app->terminate($request, $response);
82-
}
83-
84-
break;
79+
if ($app instanceof TerminableInterface) {
80+
$app->terminate($request, $response);
8581
}
8682
}
8783
}

0 commit comments

Comments
 (0)