mirror of
https://github.com/archtechx/tenancy.git
synced 2026-08-06 07:54:03 +00:00
Remove unused $app param and ?BroadcastManager typehint (singleton(...) calls in BroadcastingConfigBootstrapper::revert)
This commit is contained in:
parent
a19d3b532f
commit
24aeb23431
1 changed files with 2 additions and 2 deletions
|
|
@ -111,8 +111,8 @@ class BroadcastingConfigBootstrapper implements TenancyBootstrapper
|
||||||
public function revert(): void
|
public function revert(): void
|
||||||
{
|
{
|
||||||
// Revert the bound BroadcastManager and Broadcaster singletons back to their original state
|
// Revert the bound BroadcastManager and Broadcaster singletons back to their original state
|
||||||
$this->app->singleton(BroadcastManager::class, fn (Application $app): ?BroadcastManager => $this->originalBroadcastManager);
|
$this->app->singleton(BroadcastManager::class, fn () => $this->originalBroadcastManager);
|
||||||
$this->app->singleton(Broadcaster::class, fn (Application $app) => $this->originalBroadcaster);
|
$this->app->singleton(Broadcaster::class, fn () => $this->originalBroadcaster);
|
||||||
|
|
||||||
// Clear the resolved Broadcast facade instance so that it gets re-resolved as the central BroadcastManager
|
// Clear the resolved Broadcast facade instance so that it gets re-resolved as the central BroadcastManager
|
||||||
Broadcast::clearResolvedInstance();
|
Broadcast::clearResolvedInstance();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue