Skip to content

Commit

Permalink
Update ApplySegmentGlobals.php (#5)
Browse files Browse the repository at this point in the history
Ensure we are processing the $next callable as expected from middleware.
  • Loading branch information
Daanra authored Oct 19, 2022
1 parent 08a66f7 commit e3f3040
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Middleware/ApplySegmentGlobals.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public function handle(Request $request, Closure $next, $guard = null)
* Build some nice default context based on the current request.
*/
Segment::setGlobalContext($this->getContext($request));

return $next($request);
}

private function getContext(Request $request): array
Expand Down

0 comments on commit e3f3040

Please sign in to comment.