Skip to content

Commit

Permalink
update for package consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Jan 2, 2024
1 parent 765d415 commit 77bb125
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"laravel": {
"providers": [
"Laravel\\Reverb\\ManagerProvider",
"Laravel\\Reverb\\ServiceProvider"
"Laravel\\Reverb\\ReverbServiceProvider"
],
"aliases": {
"Output": "Laravel\\Reverb\\Output"
Expand Down
5 changes: 1 addition & 4 deletions config/reverb.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@
'servers' => [

'reverb' => [
'host' => env('REVERB_HOST', '127.0.0.1'),
'host' => env('REVERB_HOST', 'localhost'),
'port' => env('REVERB_PORT', 8080),
'connection_manager' => [
'prefix' => env('REVERB_CONNECTION_CACHE_PREFIX', 'reverb'),
],
'publish_events' => [
'enabled' => env('REVERB_SCALING_ENABLED', false),
'channel' => env('REVERB_SCALING_CHANNEL', 'reverb'),
Expand Down
6 changes: 3 additions & 3 deletions src/ServiceProvider.php → src/ReverbServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Laravel\Reverb;

use Illuminate\Support\ServiceProvider as BaseServiceProvider;
use Illuminate\Support\ServiceProvider;
use Laravel\Reverb\Contracts\Logger;
use Laravel\Reverb\Loggers\NullLogger;

class ServiceProvider extends BaseServiceProvider
class ReverbServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
Expand All @@ -15,7 +15,7 @@ public function boot(): void
{
$this->publishes([
__DIR__.'/../config/reverb.php' => config_path('reverb.php'),
]);
], ['reverb', 'reverb-config']);

$this->app->make(ServerManager::class)
->driver()
Expand Down
4 changes: 2 additions & 2 deletions tests/ApiGatewayTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Laravel\Reverb\Servers\ApiGateway\Jobs\SendToConnection;
use Laravel\Reverb\Servers\ApiGateway\Request;
use Laravel\Reverb\Servers\ApiGateway\Server;
use Laravel\Reverb\ServiceProvider;
use Laravel\Reverb\ReverbServiceProvider;

class ApiGatewayTestCase extends TestCase
{
Expand Down Expand Up @@ -44,7 +44,7 @@ protected function resolveApplicationConfiguration($app)
protected function getPackageProviders($app)
{
return [
ServiceProvider::class,
ReverbServiceProvider::class,
ManagerProvider::class,
];
}
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Protocols\Pusher\Managers\ArrayChannelConnectionManager;
use Laravel\Reverb\Protocols\Pusher\Managers\ArrayChannelManager;
use Laravel\Reverb\ServiceProvider;
use Laravel\Reverb\ReverbServiceProvider;
use Orchestra\Testbench\TestCase as TestbenchTestCase;

class TestCase extends TestbenchTestCase
Expand Down Expand Up @@ -43,7 +43,7 @@ protected function setUp(): void
protected function getPackageProviders($app)
{
return [
ServiceProvider::class,
ReverbServiceProvider::class,
ManagerProvider::class,
];
}
Expand Down

0 comments on commit 77bb125

Please sign in to comment.