Skip to content

Commit

Permalink
remove connection manager
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 21, 2023
1 parent bde198e commit 355dc4b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 207 deletions.
61 changes: 0 additions & 61 deletions src/Contracts/ConnectionManager.php

This file was deleted.

5 changes: 0 additions & 5 deletions src/Contracts/ServerProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ public function doesNotSubscribeToEvents(): bool
return $this->shouldNotPublishEvents();
}

/**
* Build the connection manager for the server.
*/
abstract public function buildConnectionManager(): ConnectionManager;

/**
* Build the channel manager for the server.
*/
Expand Down
120 changes: 0 additions & 120 deletions src/Managers/ArrayConnectionManager.php

This file was deleted.

8 changes: 0 additions & 8 deletions src/Servers/ApiGateway/ApiGatewayProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@ public function register(): void
});
}

/**
* Build the connection manager for the server.
*/
public function buildConnectionManager(): ConnectionManager
{
return new ArrayConnectionManager;
}

/**
* Build the channel manager for the server.
*/
Expand Down
8 changes: 0 additions & 8 deletions src/Servers/Reverb/ReverbProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,6 @@ public function withPublishing(): void
$this->publishesEvents = true;
}

/**
* Build the connection manager for the server.
*/
public function buildConnectionManager(): ConnectionManager
{
return new ArrayConnectionManager;
}

/**
* Build the channel manager for the server.
*/
Expand Down
5 changes: 0 additions & 5 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ public function registerServer()

$server->register();

$this->app->singleton(
ConnectionManager::class,
fn () => $server->buildConnectionManager()
);

$this->app->singleton(
ChannelManager::class,
fn () => $server->buildChannelManager()
Expand Down

0 comments on commit 355dc4b

Please sign in to comment.