From 0fb8c48b4f648fcfcb2a9e3870521b1ff15a7c9a Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Sat, 16 Sep 2023 16:51:22 +0300 Subject: [PATCH] Rename dev server -> debug server --- config/bootstrap.php | 2 +- config/params.php | 10 +++++----- ...castCommand.php => DebugServerBroadcastCommand.php} | 4 ++-- .../{DevServerCommand.php => DebugServerCommand.php} | 4 ++-- src/{DevServer => DebugServer}/Connection.php | 2 +- src/{DevServer => DebugServer}/LoggerDecorator.php | 2 +- src/{DevServer => DebugServer}/VarDumperHandler.php | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) rename src/Command/{DevServerBroadcastCommand.php => DebugServerBroadcastCommand.php} (94%) rename src/Command/{DevServerCommand.php => DebugServerCommand.php} (98%) rename src/{DevServer => DebugServer}/Connection.php (99%) rename src/{DevServer => DebugServer}/LoggerDecorator.php (94%) rename src/{DevServer => DebugServer}/VarDumperHandler.php (92%) diff --git a/config/bootstrap.php b/config/bootstrap.php index 8d9fce47..f8229a9a 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -7,7 +7,7 @@ use Yiisoft\VarDumper\VarDumper; use Yiisoft\Yii\Debug\Collector\VarDumperCollector; use Yiisoft\Yii\Debug\Collector\VarDumperHandlerInterfaceProxy; -use Yiisoft\Yii\Debug\DevServer\VarDumperHandler; +use Yiisoft\Yii\Debug\DebugServer\VarDumperHandler; /** * @var $params array diff --git a/config/params.php b/config/params.php index 3c69d03c..b3089e36 100644 --- a/config/params.php +++ b/config/params.php @@ -29,9 +29,9 @@ use Yiisoft\Yii\Debug\Command\DebugContainerCommand; use Yiisoft\Yii\Debug\Command\DebugEventsCommand; use Yiisoft\Yii\Debug\Command\DebugResetCommand; -use Yiisoft\Yii\Debug\Command\DevServerBroadcastCommand; -use Yiisoft\Yii\Debug\Command\DevServerCommand; -use Yiisoft\Yii\Debug\DevServer\LoggerDecorator; +use Yiisoft\Yii\Debug\Command\DebugServerBroadcastCommand; +use Yiisoft\Yii\Debug\Command\DebugServerCommand; +use Yiisoft\Yii\Debug\DebugServer\LoggerDecorator; /** * @var $params array @@ -102,8 +102,8 @@ DebugResetCommand::COMMAND_NAME => DebugResetCommand::class, DebugContainerCommand::COMMAND_NAME => DebugContainerCommand::class, DebugEventsCommand::COMMAND_NAME => DebugEventsCommand::class, - DevServerCommand::COMMAND_NAME => DevServerCommand::class, - DevServerBroadcastCommand::COMMAND_NAME => DevServerBroadcastCommand::class, + DebugServerCommand::COMMAND_NAME => DebugServerCommand::class, + DebugServerBroadcastCommand::COMMAND_NAME => DebugServerBroadcastCommand::class, ], ], ]; diff --git a/src/Command/DevServerBroadcastCommand.php b/src/Command/DebugServerBroadcastCommand.php similarity index 94% rename from src/Command/DevServerBroadcastCommand.php rename to src/Command/DebugServerBroadcastCommand.php index fc5c923f..1446b513 100644 --- a/src/Command/DevServerBroadcastCommand.php +++ b/src/Command/DebugServerBroadcastCommand.php @@ -11,9 +11,9 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Yiisoft\Yii\Console\ExitCode; -use Yiisoft\Yii\Debug\DevServer\Connection; +use Yiisoft\Yii\Debug\DebugServer\Connection; -final class DevServerBroadcastCommand extends Command +final class DebugServerBroadcastCommand extends Command { public const COMMAND_NAME = 'dev:broadcast'; protected static $defaultName = self::COMMAND_NAME; diff --git a/src/Command/DevServerCommand.php b/src/Command/DebugServerCommand.php similarity index 98% rename from src/Command/DevServerCommand.php rename to src/Command/DebugServerCommand.php index b5cf7852..6c659d14 100644 --- a/src/Command/DevServerCommand.php +++ b/src/Command/DebugServerCommand.php @@ -14,9 +14,9 @@ use Symfony\Component\Console\SignalRegistry\SignalRegistry; use Symfony\Component\Console\Style\SymfonyStyle; use Yiisoft\Yii\Console\ExitCode; -use Yiisoft\Yii\Debug\DevServer\Connection; +use Yiisoft\Yii\Debug\DebugServer\Connection; -final class DevServerCommand extends Command +final class DebugServerCommand extends Command { public const COMMAND_NAME = 'dev'; protected static $defaultName = self::COMMAND_NAME; diff --git a/src/DevServer/Connection.php b/src/DebugServer/Connection.php similarity index 99% rename from src/DevServer/Connection.php rename to src/DebugServer/Connection.php index c565588d..8904b2ea 100644 --- a/src/DevServer/Connection.php +++ b/src/DebugServer/Connection.php @@ -4,7 +4,7 @@ declare(strict_types=1); -namespace Yiisoft\Yii\Debug\DevServer; +namespace Yiisoft\Yii\Debug\DebugServer; use Generator; use RuntimeException; diff --git a/src/DevServer/LoggerDecorator.php b/src/DebugServer/LoggerDecorator.php similarity index 94% rename from src/DevServer/LoggerDecorator.php rename to src/DebugServer/LoggerDecorator.php index 0e5ad5a3..f7693cb2 100644 --- a/src/DevServer/LoggerDecorator.php +++ b/src/DebugServer/LoggerDecorator.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Yiisoft\Yii\Debug\DevServer; +namespace Yiisoft\Yii\Debug\DebugServer; use Psr\Log\LoggerInterface; use Psr\Log\LoggerTrait; diff --git a/src/DevServer/VarDumperHandler.php b/src/DebugServer/VarDumperHandler.php similarity index 92% rename from src/DevServer/VarDumperHandler.php rename to src/DebugServer/VarDumperHandler.php index c96488ea..49618699 100644 --- a/src/DevServer/VarDumperHandler.php +++ b/src/DebugServer/VarDumperHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Yiisoft\Yii\Debug\DevServer; +namespace Yiisoft\Yii\Debug\DebugServer; use Yiisoft\VarDumper\HandlerInterface; use Yiisoft\VarDumper\VarDumper;