Skip to content

Commit

Permalink
Add RayServiceProvider exception
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Jul 23, 2022
1 parent 2b23dd6 commit 8c46031
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CurrentApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\Facade;
use Illuminate\Support\ServiceProvider;
use Spatie\LaravelRay\RayServiceProvider;

class CurrentApplication
{
Expand All @@ -29,7 +30,9 @@ public static function set(Application $app): void
/** @var ServiceProvider $provider */
foreach ($this->serviceProviders as $provider) {
// Skip providers already handled specifically in Octane
if ($provider instanceof OctaneServiceProvider) {
if ($provider instanceof OctaneServiceProvider ||
$provider instanceof RayServiceProvider
) {
continue;
}

Expand Down

0 comments on commit 8c46031

Please sign in to comment.