Skip to content

Commit

Permalink
PeriodicProcessInterface and WorkerProcessInterface extends RunnableP…
Browse files Browse the repository at this point in the history
…rocess
  • Loading branch information
luzrain committed Sep 3, 2024
1 parent c8588eb commit c4267d0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/PeriodicProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
use Luzrain\PHPStreamServer\Internal\MessageBus\MessageBus;
use Luzrain\PHPStreamServer\Internal\MessageBus\SocketFileMessageBus;
use Luzrain\PHPStreamServer\Internal\ProcessTrait;
use Luzrain\PHPStreamServer\Internal\RunnableProcess;
use Revolt\EventLoop;
use Revolt\EventLoop\DriverFactory;

final class PeriodicProcess implements RunnableProcess, PeriodicProcessInterface
final class PeriodicProcess implements PeriodicProcessInterface
{
use ProcessTrait {
detach as detachByTrait;
Expand Down
5 changes: 2 additions & 3 deletions src/PeriodicProcessInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

namespace Luzrain\PHPStreamServer;

use Luzrain\PHPStreamServer\Plugin\Plugin;
use Luzrain\PHPStreamServer\ReloadStrategy\ReloadStrategy;
use Luzrain\PHPStreamServer\Internal\RunnableProcess;

interface PeriodicProcessInterface extends ProcessInterface
interface PeriodicProcessInterface extends ProcessInterface, RunnableProcess
{
}
3 changes: 1 addition & 2 deletions src/WorkerProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Luzrain\PHPStreamServer\Internal\MessageBus\SocketFileMessageBus;
use Luzrain\PHPStreamServer\Internal\ProcessTrait;
use Luzrain\PHPStreamServer\Internal\ReloadStrategyTrigger;
use Luzrain\PHPStreamServer\Internal\RunnableProcess;
use Luzrain\PHPStreamServer\Internal\ServerStatus\Message\Detach;
use Luzrain\PHPStreamServer\Internal\ServerStatus\Message\Heartbeat;
use Luzrain\PHPStreamServer\Internal\ServerStatus\Message\Spawn;
Expand All @@ -19,7 +18,7 @@
use Revolt\EventLoop;
use Revolt\EventLoop\DriverFactory;

final class WorkerProcess implements RunnableProcess, WorkerProcessInterface
final class WorkerProcess implements WorkerProcessInterface
{
use ProcessTrait {
detach as detachByTrait;
Expand Down
3 changes: 2 additions & 1 deletion src/WorkerProcessInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

namespace Luzrain\PHPStreamServer;

use Luzrain\PHPStreamServer\Internal\RunnableProcess;
use Luzrain\PHPStreamServer\Plugin\Plugin;
use Luzrain\PHPStreamServer\ReloadStrategy\ReloadStrategy;

interface WorkerProcessInterface extends ProcessInterface
interface WorkerProcessInterface extends ProcessInterface, RunnableProcess
{
/**
* Stop worker with exit code
Expand Down

0 comments on commit c4267d0

Please sign in to comment.