Skip to content

Commit

Permalink
Skip re-boot for specifically handled service providers
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Jul 23, 2022
1 parent 44117bb commit fee1931
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CurrentApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public static function set(Application $app): void
(function () use ($app) {
/** @var ServiceProvider $provider */
foreach ($this->serviceProviders as $provider) {
// Skip providers already handled specifically in Octane
if ($provider instanceof OctaneServiceProvider) {
continue;
}

(function () use ($app) {
$this->app = $app;
})->call($provider);
Expand Down

0 comments on commit fee1931

Please sign in to comment.