|
@@ -92,7 +92,7 @@ |
|
|
block discarded – undo |
|
92
|
92
|
throw new InvalidArgumentException('Invalid callable provided'); |
|
93
|
93
|
} |
|
94
|
94
|
|
|
95
|
|
- return function (RequestInterface $request, ResponseInterface $response, callable $next) use ($basePath, $factory) { |
|
|
95
|
+ return function(RequestInterface $request, ResponseInterface $response, callable $next) use ($basePath, $factory) { |
|
96
|
96
|
if (strlen($basePath) > 0 && strpos($request->getUri()->getPath(), $basePath) !== 0) { |
|
97
|
97
|
$middleware = false; |
|
98
|
98
|
} else { |
Please login to merge, or discard this patch.