diff --git a/src/Backupper/AbstractBackupper.php b/src/Backupper/AbstractBackupper.php index cefeb0dc..e2b8c336 100644 --- a/src/Backupper/AbstractBackupper.php +++ b/src/Backupper/AbstractBackupper.php @@ -5,8 +5,8 @@ namespace MakinaCorpus\DbToolsBundle\Backupper; use Doctrine\DBAL\Connection; -use MakinaCorpus\DbToolsBundle\Utility\AbstractProcessTrait; -use MakinaCorpus\DbToolsBundle\Utility\CommandLine; +use MakinaCorpus\DbToolsBundle\Process\AbstractProcessTrait; +use MakinaCorpus\DbToolsBundle\Process\CommandLine; use Symfony\Component\Process\Process; /** diff --git a/src/Backupper/MariaDB/Backupper.php b/src/Backupper/MariaDB/Backupper.php index 0b9df5da..359da5fc 100644 --- a/src/Backupper/MariaDB/Backupper.php +++ b/src/Backupper/MariaDB/Backupper.php @@ -5,7 +5,7 @@ namespace MakinaCorpus\DbToolsBundle\Backupper\MariaDB; use MakinaCorpus\DbToolsBundle\Backupper\AbstractBackupper; -use MakinaCorpus\DbToolsBundle\Utility\CommandLine; +use MakinaCorpus\DbToolsBundle\Process\CommandLine; class Backupper extends AbstractBackupper { diff --git a/src/Backupper/MySQL/Backupper.php b/src/Backupper/MySQL/Backupper.php index 232b5df6..f3a1bb35 100644 --- a/src/Backupper/MySQL/Backupper.php +++ b/src/Backupper/MySQL/Backupper.php @@ -5,7 +5,7 @@ namespace MakinaCorpus\DbToolsBundle\Backupper\MySQL; use MakinaCorpus\DbToolsBundle\Backupper\AbstractBackupper; -use MakinaCorpus\DbToolsBundle\Utility\CommandLine; +use MakinaCorpus\DbToolsBundle\Process\CommandLine; class Backupper extends AbstractBackupper { diff --git a/src/Backupper/PgSQL/Backupper.php b/src/Backupper/PgSQL/Backupper.php index 049bf15f..bda63e91 100644 --- a/src/Backupper/PgSQL/Backupper.php +++ b/src/Backupper/PgSQL/Backupper.php @@ -5,7 +5,7 @@ namespace MakinaCorpus\DbToolsBundle\Backupper\PgSQL; use MakinaCorpus\DbToolsBundle\Backupper\AbstractBackupper; -use MakinaCorpus\DbToolsBundle\Utility\CommandLine; +use MakinaCorpus\DbToolsBundle\Process\CommandLine; class Backupper extends AbstractBackupper { diff --git a/src/Backupper/SQLite/Backupper.php b/src/Backupper/SQLite/Backupper.php index 736aed41..233f7626 100644 --- a/src/Backupper/SQLite/Backupper.php +++ b/src/Backupper/SQLite/Backupper.php @@ -5,7 +5,7 @@ namespace MakinaCorpus\DbToolsBundle\Backupper\SQLite; use MakinaCorpus\DbToolsBundle\Backupper\AbstractBackupper; -use MakinaCorpus\DbToolsBundle\Utility\CommandLine; +use MakinaCorpus\DbToolsBundle\Process\CommandLine; use MakinaCorpus\QueryBuilder\Bridge\Doctrine\DoctrineQueryBuilder; use MakinaCorpus\QueryBuilder\Where; diff --git a/src/Utility/ChainLogger.php b/src/Helper/ChainLogger.php similarity index 92% rename from src/Utility/ChainLogger.php rename to src/Helper/ChainLogger.php index 2e2950bb..fedc6846 100644 --- a/src/Utility/ChainLogger.php +++ b/src/Helper/ChainLogger.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MakinaCorpus\DbToolsBundle\Utility; +namespace MakinaCorpus\DbToolsBundle\Helper; use Psr\Log\AbstractLogger; use Psr\Log\LoggerInterface; diff --git a/src/Utility/AbstractProcessTrait.php b/src/Process/AbstractProcessTrait.php similarity index 94% rename from src/Utility/AbstractProcessTrait.php rename to src/Process/AbstractProcessTrait.php index 10c43243..056cf8ad 100644 --- a/src/Utility/AbstractProcessTrait.php +++ b/src/Process/AbstractProcessTrait.php @@ -2,8 +2,9 @@ declare(strict_types=1); -namespace MakinaCorpus\DbToolsBundle\Utility; +namespace MakinaCorpus\DbToolsBundle\Process; +use MakinaCorpus\DbToolsBundle\Helper\ChainLogger; use Psr\Log\LoggerInterface; use Symfony\Component\Process\Process; diff --git a/src/Utility/CommandLine.php b/src/Process/CommandLine.php similarity index 98% rename from src/Utility/CommandLine.php rename to src/Process/CommandLine.php index 7549d273..26eaee28 100644 --- a/src/Utility/CommandLine.php +++ b/src/Process/CommandLine.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MakinaCorpus\DbToolsBundle\Utility; +namespace MakinaCorpus\DbToolsBundle\Process; use Symfony\Component\Process\Process; diff --git a/src/Restorer/AbstractRestorer.php b/src/Restorer/AbstractRestorer.php index 908c581e..a6a145aa 100644 --- a/src/Restorer/AbstractRestorer.php +++ b/src/Restorer/AbstractRestorer.php @@ -5,8 +5,8 @@ namespace MakinaCorpus\DbToolsBundle\Restorer; use Doctrine\DBAL\Connection; -use MakinaCorpus\DbToolsBundle\Utility\AbstractProcessTrait; -use MakinaCorpus\DbToolsBundle\Utility\CommandLine; +use MakinaCorpus\DbToolsBundle\Process\AbstractProcessTrait; +use MakinaCorpus\DbToolsBundle\Process\CommandLine; use Symfony\Component\Process\Process; /** diff --git a/src/Restorer/MariaDB/Restorer.php b/src/Restorer/MariaDB/Restorer.php index e80b3b95..03ac2271 100644 --- a/src/Restorer/MariaDB/Restorer.php +++ b/src/Restorer/MariaDB/Restorer.php @@ -5,7 +5,7 @@ namespace MakinaCorpus\DbToolsBundle\Restorer\MariaDB; use MakinaCorpus\DbToolsBundle\Restorer\AbstractRestorer; -use MakinaCorpus\DbToolsBundle\Utility\CommandLine; +use MakinaCorpus\DbToolsBundle\Process\CommandLine; class Restorer extends AbstractRestorer { diff --git a/src/Restorer/MySQL/Restorer.php b/src/Restorer/MySQL/Restorer.php index 8f3aecdc..1d83ee89 100644 --- a/src/Restorer/MySQL/Restorer.php +++ b/src/Restorer/MySQL/Restorer.php @@ -5,7 +5,7 @@ namespace MakinaCorpus\DbToolsBundle\Restorer\MySQL; use MakinaCorpus\DbToolsBundle\Restorer\AbstractRestorer; -use MakinaCorpus\DbToolsBundle\Utility\CommandLine; +use MakinaCorpus\DbToolsBundle\Process\CommandLine; class Restorer extends AbstractRestorer { diff --git a/src/Restorer/PgSQL/Restorer.php b/src/Restorer/PgSQL/Restorer.php index f063815a..0d375877 100644 --- a/src/Restorer/PgSQL/Restorer.php +++ b/src/Restorer/PgSQL/Restorer.php @@ -5,7 +5,7 @@ namespace MakinaCorpus\DbToolsBundle\Restorer\PgSQL; use MakinaCorpus\DbToolsBundle\Restorer\AbstractRestorer; -use MakinaCorpus\DbToolsBundle\Utility\CommandLine; +use MakinaCorpus\DbToolsBundle\Process\CommandLine; class Restorer extends AbstractRestorer { diff --git a/src/Restorer/SQLite/Restorer.php b/src/Restorer/SQLite/Restorer.php index 93301f38..947c1d14 100644 --- a/src/Restorer/SQLite/Restorer.php +++ b/src/Restorer/SQLite/Restorer.php @@ -5,7 +5,7 @@ namespace MakinaCorpus\DbToolsBundle\Restorer\SQLite; use MakinaCorpus\DbToolsBundle\Restorer\AbstractRestorer; -use MakinaCorpus\DbToolsBundle\Utility\CommandLine; +use MakinaCorpus\DbToolsBundle\Process\CommandLine; class Restorer extends AbstractRestorer { diff --git a/tests/Unit/Utility/CommandLineTest.php b/tests/Unit/Process/CommandLineTest.php similarity index 97% rename from tests/Unit/Utility/CommandLineTest.php rename to tests/Unit/Process/CommandLineTest.php index 40818c82..8239f2c5 100644 --- a/tests/Unit/Utility/CommandLineTest.php +++ b/tests/Unit/Process/CommandLineTest.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace MakinaCorpus\DbToolsBundle\Tests\Unit\Utility; +namespace MakinaCorpus\DbToolsBundle\Tests\Unit\Process; -use MakinaCorpus\DbToolsBundle\Utility\CommandLine; +use MakinaCorpus\DbToolsBundle\Process\CommandLine; use PHPUnit\Framework\Attributes\RequiresOperatingSystem; use PHPUnit\Framework\TestCase;