Skip to content

Commit

Permalink
Revert PaginationState to resolve using new instance of the app (#519)
Browse files Browse the repository at this point in the history
* Revert PaginationState to resolve using new instance of the app on each new request

* Use sandbox clone of application instance
  • Loading branch information
farmani authored May 13, 2022
1 parent 752d02d commit e40447b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Concerns/ProvidesDefaultConfigurationOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function prepareApplicationForNextRequest(): array
\Laravel\Octane\Listeners\EnforceRequestScheme::class,
\Laravel\Octane\Listeners\EnsureRequestServerPortMatchesScheme::class,
\Laravel\Octane\Listeners\GiveNewRequestInstanceToApplication::class,
// \Laravel\Octane\Listeners\GiveNewRequestInstanceToPaginator::class,
\Laravel\Octane\Listeners\GiveNewRequestInstanceToPaginator::class,
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Listeners/GiveNewRequestInstanceToPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ class GiveNewRequestInstanceToPaginator
*/
public function handle($event): void
{
// PaginationState::resolveUsing($event->sandbox);
PaginationState::resolveUsing($event->sandbox);
}
}

0 comments on commit e40447b

Please sign in to comment.