Skip to content

Commit

Permalink
Use app()
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Aug 8, 2023
1 parent 61de4bb commit 0fdbd18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/RequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Laravel\Folio;

use Closure;
use Illuminate\Container\Container;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
Expand Down Expand Up @@ -59,7 +58,7 @@ public function __invoke(Request $request): mixed
? ($this->renderUsing)($request, $matchedView)
: $this->toResponse($matchedView);

$app = Container::getInstance();
$app = app();

$app->make(FolioManager::class)->terminateUsing(
fn () => $middleware->filter(fn ($middleware) => is_string($middleware) && class_exists($middleware) && method_exists($middleware, 'terminate'))
Expand Down

0 comments on commit 0fdbd18

Please sign in to comment.