Skip to content

Commit

Permalink
Merge branch 'taylor' of github.com:laravel/reverb into taylor
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 19, 2024
2 parents 0ea48b2 + 1a831b4 commit 5cfc1f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/Servers/Reverb/ReverbServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ public function __construct(protected Application $app, protected array $config)
*/
public function register(): void
{
$this->app->singleton(PubSubProvider::class, fn ($app) =>
new RedisPubSubProvider(
$app->make(RedisClientFactory::class),
$this->config['scaling']['channel'] ?? 'reverb'
)
$this->app->singleton(PubSubProvider::class, fn ($app) => new RedisPubSubProvider(
$app->make(RedisClientFactory::class),
$this->config['scaling']['channel'] ?? 'reverb'
)
);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/ReverbTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
use Laravel\Reverb\Servers\Reverb\Factory;
use Laravel\Reverb\ServerServiceProviderManager;
use Ratchet\Client\WebSocket;
use function React\Async\await;
use React\Async\SimpleFiber;
use React\EventLoop\Loop;
use React\Http\Browser;
use React\Promise\PromiseInterface;

use ReflectionObject;

use function React\Async\await;

class ReverbTestCase extends TestCase
{
protected $server;
Expand Down

0 comments on commit 5cfc1f7

Please sign in to comment.