From 2f667d74315a6b26a0c216a59cbdab606416e2a5 Mon Sep 17 00:00:00 2001 From: Mario Lorenz Date: Fri, 22 Sep 2023 14:54:14 +0200 Subject: [PATCH] Rename Path and Repo for Core-Name-Convention --- README.md | 14 +++++++------- composer.json | 6 +++--- services.yaml | 4 ++-- src/Command/DBExport.php | 10 +++++----- src/Command/DBImport.php | 10 +++++----- src/Core/Import.php | 4 ++-- src/Traits/CommonMethods.php | 4 ++-- src/Traits/PdoMethods.php | 2 +- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 1d1dc95..1c99b02 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,14 @@ this file Installation via composer ``` -composer require oxid-solution-catalysts/cliexportimport ^1.0.0 +composer require oxid-solution-catalysts/exportimport-tools ^1.0.0 ``` ## Usage ### Configuration -Use a configuration YAML e.g. dump.yaml and save it here: var/configuration/cliexportimport/dump.yaml +Use a configuration YAML e.g. dump.yaml and save it here: var/configuration/exportimport-tools/dump.yaml Contents of the configuration YAML ``` @@ -49,7 +49,7 @@ vendor/bin/oe-console osc:db:export --yaml=dump.yaml ``` The dump is created in the /source/export/ directory. The name of the dump is the defined "dumpFileName" from the Configuration YAML. -The --yaml option contains the name of the configuration file, which is located in the directory: var/configuration/cliexportimport/ +The --yaml option contains the name of the configuration file, which is located in the directory: var/configuration/exportimport-tools/ ### Import Data ``` @@ -57,7 +57,7 @@ vendor/bin/oe-console osc:db:import --yaml=dump.yaml ``` The dump is read from the /source/import/ directory. The name of the dump is the defined "dumpFileName" from the Configuration YAML -The --yaml option contains the name of the configuration file, which is located in the directory: var/configuration/cliexportimport/ +The --yaml option contains the name of the configuration file, which is located in the directory: var/configuration/exportimport-tools/ ## Running tests @@ -65,17 +65,17 @@ The --yaml option contains the name of the configuration file, which is located Code Style ``` -composer phpcs --working-dir=extensions/osc/cliexportimport +composer phpcs --working-dir=extensions/osc/exportimport-tools ``` PHPmd ``` -composer phpmd --working-dir=extensions/osc/cliexportimport +composer phpmd --working-dir=extensions/osc/exportimport-tools ``` PHPStan ``` -composer phpstan --working-dir=extensions/osc/cliexportimport +composer phpstan --working-dir=extensions/osc/exportimport-tools ``` diff --git a/composer.json b/composer.json index 95d5392..aee00da 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "oxid-solution-catalysts/cliexportimport", + "name": "oxid-solution-catalysts/exportimport-tools", "description": "OXID eSales extension for oe-console to im- and export the database", "type": "oxideshop-component", "keywords": ["oxid", "modules", "eShop", "oe-console", "export", "import"], @@ -13,7 +13,7 @@ }, "extra": { "oxideshop": { - "target-directory": "osc/cliexportimport", + "target-directory": "osc/exportimport-tools", "blacklist-filter": [ "resources/**/*", "tests/**/*" @@ -34,7 +34,7 @@ }, "autoload": { "psr-4": { - "OxidSolutionCatalysts\\CliExportImport\\": "src/" + "OxidSolutionCatalysts\\ExportImportTools\\": "src/" } }, "minimum-stability": "dev", diff --git a/services.yaml b/services.yaml index 8ee999d..f2c73d5 100644 --- a/services.yaml +++ b/services.yaml @@ -4,11 +4,11 @@ services: public: true osc.db.export: - class: OxidSolutionCatalysts\CliExportImport\Command\DBExport + class: OxidSolutionCatalysts\ExportImportTools\Command\DBExport tags: - { name: 'console.command', command: 'osc:db:export' } osc.db.import: - class: OxidSolutionCatalysts\CliExportImport\Command\DBImport + class: OxidSolutionCatalysts\ExportImportTools\Command\DBImport tags: - { name: 'console.command', command: 'osc:db:import' } diff --git a/src/Command/DBExport.php b/src/Command/DBExport.php index ade531e..d5e09ff 100644 --- a/src/Command/DBExport.php +++ b/src/Command/DBExport.php @@ -5,12 +5,12 @@ * See LICENSE file for license details. */ -namespace OxidSolutionCatalysts\CliExportImport\Command; +namespace OxidSolutionCatalysts\ExportImportTools\Command; use Exception; use Ifsnop\Mysqldump\Mysqldump; -use OxidSolutionCatalysts\CliExportImport\Traits\CommonMethods; -use OxidSolutionCatalysts\CliExportImport\Traits\PdoMethods; +use OxidSolutionCatalysts\ExportImportTools\Traits\CommonMethods; +use OxidSolutionCatalysts\ExportImportTools\Traits\PdoMethods; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; @@ -27,12 +27,12 @@ protected function configure(): void { $this->setDescription( 'Export Database to /export folder. - Optional control via yaml-file in var/configuration/cliexportimport/' + Optional control via yaml-file in var/configuration/exportimport-tools/' )->addOption( '--yaml', '', InputOption::VALUE_OPTIONAL, - 'Name of yaml-file in in config-folder var/configuration/cliexportimport/' + 'Name of yaml-file in in config-folder var/configuration/exportimport-tools/' ); } diff --git a/src/Command/DBImport.php b/src/Command/DBImport.php index 19782cf..e8ddd2f 100644 --- a/src/Command/DBImport.php +++ b/src/Command/DBImport.php @@ -5,15 +5,15 @@ * See LICENSE file for license details. */ -namespace OxidSolutionCatalysts\CliExportImport\Command; +namespace OxidSolutionCatalysts\ExportImportTools\Command; -use OxidSolutionCatalysts\CliExportImport\Traits\CommonMethods; +use OxidSolutionCatalysts\ExportImportTools\Traits\CommonMethods; use RuntimeException; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use OxidSolutionCatalysts\CliExportImport\Core\Import; +use OxidSolutionCatalysts\ExportImportTools\Core\Import; class DBImport extends Command { @@ -25,12 +25,12 @@ protected function configure(): void { $this->setDescription( 'Import Database from /import folder. - Optional control via yaml-file in var/configuration/cliexportimport/' + Optional control via yaml-file in var/configuration/exportimport-tools/' )->addOption( '--yaml', '', InputOption::VALUE_OPTIONAL, - 'Name of yaml-file in in config-folder var/configuration/cliexportimport/' + 'Name of yaml-file in in config-folder var/configuration/exportimport-tools/' ); } diff --git a/src/Core/Import.php b/src/Core/Import.php index c8a0947..e9ea772 100644 --- a/src/Core/Import.php +++ b/src/Core/Import.php @@ -1,8 +1,8 @@ getRealPath( "var" . DIRECTORY_SEPARATOR . "configuration" . DIRECTORY_SEPARATOR . - "cliexportimport" . DIRECTORY_SEPARATOR, + "exportimport-tools" . DIRECTORY_SEPARATOR, false ); } diff --git a/src/Traits/PdoMethods.php b/src/Traits/PdoMethods.php index 0a8a672..17de538 100644 --- a/src/Traits/PdoMethods.php +++ b/src/Traits/PdoMethods.php @@ -5,7 +5,7 @@ * See LICENSE file for license details. */ -namespace OxidSolutionCatalysts\CliExportImport\Traits; +namespace OxidSolutionCatalysts\ExportImportTools\Traits; use OxidEsales\Eshop\Core\Registry; use Symfony\Component\Yaml\Yaml;