Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Dec 22, 2023
1 parent b1a55a1 commit 8697a34
Show file tree
Hide file tree
Showing 62 changed files with 185 additions and 185 deletions.
4 changes: 2 additions & 2 deletions src/Contracts/ServerProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Laravel\Reverb\Contracts;

use Laravel\Reverb\Pusher\Contracts\ChannelConnectionManager;
use Laravel\Reverb\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelConnectionManager;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelManager;

abstract class ServerProvider
{
Expand Down
4 changes: 2 additions & 2 deletions src/Jobs/PingInactiveConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Illuminate\Foundation\Bus\Dispatchable;
use Laravel\Reverb\Contracts\ApplicationProvider;
use Laravel\Reverb\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Loggers\Log;
use Laravel\Reverb\Pusher\Event as PusherEvent;
use Laravel\Reverb\Protocols\Pusher\Event as PusherEvent;

class PingInactiveConnections
{
Expand Down
2 changes: 1 addition & 1 deletion src/Jobs/PruneStaleConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Illuminate\Foundation\Bus\Dispatchable;
use Laravel\Reverb\Contracts\ApplicationProvider;
use Laravel\Reverb\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Loggers\Log;

class PruneStaleConnections
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Laravel\Reverb\Pusher\Channels;
namespace Laravel\Reverb\Protocols\Pusher\Channels;

use Laravel\Reverb\Contracts\Connection;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laravel\Reverb\Pusher\Channels;
namespace Laravel\Reverb\Protocols\Pusher\Channels;

use Laravel\Reverb\Pusher\Concerns\SerializesChannels;
use Laravel\Reverb\Pusher\Contracts\ChannelConnectionManager;
use Laravel\Reverb\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Protocols\Pusher\Concerns\SerializesChannels;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelConnectionManager;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Contracts\Connection;

class Channel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Laravel\Reverb\Pusher\Channels;
namespace Laravel\Reverb\Protocols\Pusher\Channels;

use Illuminate\Support\Str;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Laravel\Reverb\Pusher\Channels;
namespace Laravel\Reverb\Protocols\Pusher\Channels;

use Illuminate\Support\Arr;
use Laravel\Reverb\Contracts\Connection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Laravel\Reverb\Pusher\Channels\Concerns;
namespace Laravel\Reverb\Protocols\Pusher\Channels\Concerns;

use Laravel\Reverb\Contracts\Connection;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laravel\Reverb\Pusher\Channels\Concerns;
namespace Laravel\Reverb\Protocols\Pusher\Channels\Concerns;

use Illuminate\Support\Str;
use Laravel\Reverb\Contracts\Connection;
use Laravel\Reverb\Pusher\Exceptions\ConnectionUnauthorized;
use Laravel\Reverb\Protocols\Pusher\Exceptions\ConnectionUnauthorized;

trait InteractsWithPrivateChannels
{
Expand Down
10 changes: 10 additions & 0 deletions src/Protocols/Pusher/Channels/PresenceCacheChannel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Laravel\Reverb\Protocols\Pusher\Channels;

use Laravel\Reverb\Protocols\Pusher\Channels\Concerns\InteractsWithPresenceChannels;

class PresenceCacheChannel extends CacheChannel
{
use InteractsWithPresenceChannels;
}
10 changes: 10 additions & 0 deletions src/Protocols/Pusher/Channels/PresenceChannel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Laravel\Reverb\Protocols\Pusher\Channels;

use Laravel\Reverb\Protocols\Pusher\Channels\Concerns\InteractsWithPresenceChannels;

class PresenceChannel extends PrivateChannel
{
use InteractsWithPresenceChannels;
}
10 changes: 10 additions & 0 deletions src/Protocols/Pusher/Channels/PrivateCacheChannel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Laravel\Reverb\Protocols\Pusher\Channels;

use Laravel\Reverb\Protocols\Pusher\Channels\Concerns\InteractsWithPrivateChannels;

class PrivateCacheChannel extends CacheChannel
{
use InteractsWithPrivateChannels;
}
10 changes: 10 additions & 0 deletions src/Protocols/Pusher/Channels/PrivateChannel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Laravel\Reverb\Protocols\Pusher\Channels;

use Laravel\Reverb\Protocols\Pusher\Channels\Concerns\InteractsWithPrivateChannels;

class PrivateChannel extends Channel
{
use InteractsWithPrivateChannels;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Laravel\Reverb\Pusher;
namespace Laravel\Reverb\Protocols\Pusher;

use Illuminate\Support\Str;
use Laravel\Reverb\Contracts\Connection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Laravel\Reverb\Pusher\Concerns;
namespace Laravel\Reverb\Protocols\Pusher\Concerns;

use Laravel\Reverb\Pusher\Channels\CacheChannel;
use Laravel\Reverb\Pusher\Channels\Channel;
use Laravel\Reverb\Pusher\Channels\Concerns\InteractsWithPresenceChannels;
use Laravel\Reverb\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Protocols\Pusher\Channels\CacheChannel;
use Laravel\Reverb\Protocols\Pusher\Channels\Channel;
use Laravel\Reverb\Protocols\Pusher\Channels\Concerns\InteractsWithPresenceChannels;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelManager;

trait InteractsWithChannelInformation
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Laravel\Reverb\Pusher\Concerns;
namespace Laravel\Reverb\Protocols\Pusher\Concerns;

use Laravel\Reverb\Pusher\Contracts\ChannelConnectionManager;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelConnectionManager;

trait SerializesChannels
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Laravel\Reverb\Pusher\Contracts;
namespace Laravel\Reverb\Protocols\Pusher\Contracts;

use Laravel\Reverb\Contracts\Connection;
use Laravel\Reverb\Pusher\Channels\ChannelConnection;
use Laravel\Reverb\Protocols\Pusher\Channels\ChannelConnection;

interface ChannelConnectionManager
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laravel\Reverb\Pusher\Contracts;
namespace Laravel\Reverb\Protocols\Pusher\Contracts;

use Laravel\Reverb\Application;
use Laravel\Reverb\Contracts\Connection;
use Laravel\Reverb\Pusher\Channels\Channel;
use Laravel\Reverb\Protocols\Pusher\Channels\Channel;

interface ChannelManager
{
Expand All @@ -21,7 +21,7 @@ public function for(Application $application): ChannelManager;
/**
* Get all the channels.
*
* @return array<string, \Laravel\Reverb\Pusher\Channels\Channel>
* @return array<string, \Laravel\Reverb\Protocols\Pusher\Channels\Channel>
*/
public function all(): array;

Expand Down
8 changes: 4 additions & 4 deletions src/Pusher/Event.php → src/Protocols/Pusher/Event.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Laravel\Reverb\Pusher;
namespace Laravel\Reverb\Protocols\Pusher;

use Exception;
use Illuminate\Support\Str;
use Laravel\Reverb\Pusher\Channels\CacheChannel;
use Laravel\Reverb\Pusher\Channels\Channel;
use Laravel\Reverb\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Protocols\Pusher\Channels\CacheChannel;
use Laravel\Reverb\Protocols\Pusher\Channels\Channel;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Contracts\Connection;

class Event
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laravel\Reverb\Pusher;
namespace Laravel\Reverb\Protocols\Pusher;

use Illuminate\Support\Arr;
use Laravel\Reverb\Application;
use Laravel\Reverb\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Contracts\Connection;
use Laravel\Reverb\ServerManager;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Laravel\Reverb\Pusher\Exceptions;
namespace Laravel\Reverb\Protocols\Pusher\Exceptions;

class ConnectionUnauthorized extends PusherException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Laravel\Reverb\Pusher\Exceptions;
namespace Laravel\Reverb\Protocols\Pusher\Exceptions;

use Laravel\Reverb\Pusher\Exceptions\PusherException;
use Laravel\Reverb\Protocols\Pusher\Exceptions\PusherException;

class InvalidOrigin extends PusherException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Laravel\Reverb\Pusher\Exceptions;
namespace Laravel\Reverb\Protocols\Pusher\Exceptions;

use Exception;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Laravel\Reverb\Pusher\Http\Controllers;
namespace Laravel\Reverb\Protocols\Pusher\Http\Controllers;

use Laravel\Reverb\Servers\Reverb\Http\Connection;
use Laravel\Reverb\Pusher\Concerns\InteractsWithChannelInformation;
use Laravel\Reverb\Protocols\Pusher\Concerns\InteractsWithChannelInformation;
use Psr\Http\Message\RequestInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Laravel\Reverb\Pusher\Http\Controllers;
namespace Laravel\Reverb\Protocols\Pusher\Http\Controllers;

use Laravel\Reverb\Servers\Reverb\Http\Connection;
use Laravel\Reverb\Pusher\Concerns\InteractsWithChannelInformation;
use Laravel\Reverb\Protocols\Pusher\Concerns\InteractsWithChannelInformation;
use Psr\Http\Message\RequestInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laravel\Reverb\Pusher\Http\Controllers;
namespace Laravel\Reverb\Protocols\Pusher\Http\Controllers;

use Illuminate\Support\Str;
use Laravel\Reverb\Servers\Reverb\Http\Connection;
use Laravel\Reverb\Pusher\Concerns\InteractsWithChannelInformation;
use Laravel\Reverb\Protocols\Pusher\Concerns\InteractsWithChannelInformation;
use Psr\Http\Message\RequestInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Laravel\Reverb\Pusher\Http\Controllers;
namespace Laravel\Reverb\Protocols\Pusher\Http\Controllers;

use Illuminate\Support\Arr;
use Laravel\Reverb\Application;
use Laravel\Reverb\Servers\Reverb\Concerns\ClosesConnections;
use Laravel\Reverb\Contracts\ApplicationProvider;
use Laravel\Reverb\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelManager;
use Laravel\Reverb\Exceptions\InvalidApplication;
use Laravel\Reverb\Servers\Reverb\Http\Connection;
use Psr\Http\Message\RequestInterface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Laravel\Reverb\Pusher\Http\Controllers;
namespace Laravel\Reverb\Protocols\Pusher\Http\Controllers;

use Illuminate\Contracts\Validation\Validator;
use Illuminate\Support\Facades\Validator as ValidatorFacade;
use Laravel\Reverb\Pusher\EventDispatcher;
use Laravel\Reverb\Protocols\Pusher\EventDispatcher;
use Laravel\Reverb\Servers\Reverb\Http\Connection;
use Laravel\Reverb\Pusher\Concerns\InteractsWithChannelInformation;
use Laravel\Reverb\Protocols\Pusher\Concerns\InteractsWithChannelInformation;
use Psr\Http\Message\RequestInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Laravel\Reverb\Pusher\Http\Controllers;
namespace Laravel\Reverb\Protocols\Pusher\Http\Controllers;

use Illuminate\Contracts\Validation\Validator;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Validator as ValidatorFacade;
use Laravel\Reverb\Pusher\EventDispatcher;
use Laravel\Reverb\Protocols\Pusher\EventDispatcher;
use Laravel\Reverb\Servers\Reverb\Http\Connection;
use Laravel\Reverb\Pusher\Concerns\InteractsWithChannelInformation;
use Laravel\Reverb\Protocols\Pusher\Concerns\InteractsWithChannelInformation;
use Psr\Http\Message\RequestInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laravel\Reverb\Pusher\Http\Controllers;
namespace Laravel\Reverb\Protocols\Pusher\Http\Controllers;

use Laravel\Reverb\Contracts\ApplicationProvider;
use Laravel\Reverb\Exceptions\InvalidApplication;
use Laravel\Reverb\Pusher\Server as PusherServer;
use Laravel\Reverb\Protocols\Pusher\Server as PusherServer;
use Laravel\Reverb\Connection as ReverbConnection;
use Laravel\Reverb\Servers\Reverb\Connection;
use Psr\Http\Message\RequestInterface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Laravel\Reverb\Pusher\Http\Controllers;
namespace Laravel\Reverb\Protocols\Pusher\Http\Controllers;

use Laravel\Reverb\Servers\Reverb\Http\Connection;
use Psr\Http\Message\RequestInterface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Laravel\Reverb\Pusher\Managers;
namespace Laravel\Reverb\Protocols\Pusher\Managers;

use Laravel\Reverb\Pusher\Contracts\ChannelConnectionManager;
use Laravel\Reverb\Protocols\Pusher\Contracts\ChannelConnectionManager;
use Laravel\Reverb\Contracts\Connection;
use Laravel\Reverb\Pusher\Channels\ChannelConnection;
use Laravel\Reverb\Protocols\Pusher\Channels\ChannelConnection;

class ArrayChannelConnectionManager implements ChannelConnectionManager
{
Expand Down
Loading

0 comments on commit 8697a34

Please sign in to comment.