Skip to content

Commit b7429f9

Browse files
committed
Add endpoint context when dispatching
1 parent 84ba448 commit b7429f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Endpoint/Concerns/EndpointDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private function dispatchEndpoints(iterable $endpoints, Context $context): ?Resp
1414

1515
foreach ($endpoints as $endpoint) {
1616
try {
17-
if ($response = $endpoint->handle($context)) {
17+
if ($response = $endpoint->handle($context->withEndpoint($endpoint))) {
1818
return $response;
1919
}
2020
} catch (MethodNotAllowedException $exception) {

0 commit comments

Comments
 (0)