Skip to content

Commit

Permalink
Allows access to Pipeline via service container (#113)
Browse files Browse the repository at this point in the history
* bind router into service container

* remove extra argument

* Update FolioServiceProvider.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
inmanturbo and taylorotwell authored Oct 4, 2023
1 parent b7a5ae6 commit f91c857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __invoke(Request $request): mixed

$uri = '/'.ltrim(substr($requestPath, strlen($mountPath->baseUri)), '/');

if ($matchedView = (new Router($mountPath))->match($request, $uri)) {
if ($matchedView = app()->make(Router::class, ['mountPath' => $mountPath])->match($request, $uri)) {
break;
}
}
Expand Down

0 comments on commit f91c857

Please sign in to comment.