Skip to content

Commit

Permalink
Allow precognition dispatchers to be bound by name for overriding
Browse files Browse the repository at this point in the history
  • Loading branch information
Spice-King committed Feb 7, 2025
1 parent 454eb0d commit da94ce0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ protected function prepareForPrecognition($request)
{
$request->attributes->set('precognitive', true);

$this->container->bind(CallableDispatcherContract::class, fn ($app) => new PrecognitionCallableDispatcher($app));
$this->container->bind(ControllerDispatcherContract::class, fn ($app) => new PrecognitionControllerDispatcher($app));
$this->container->bind(CallableDispatcherContract::class, PrecognitionCallableDispatcher::class);
$this->container->bind(ControllerDispatcherContract::class, PrecognitionControllerDispatcher::class);
}

/**
Expand Down

0 comments on commit da94ce0

Please sign in to comment.