Skip to content

Commit

Permalink
Rename Path and Repo for Core-Name-Convention
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolorenz committed Sep 22, 2023
1 parent e862133 commit 2f667d7
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down Expand Up @@ -49,33 +49,33 @@ 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
```
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

### Run

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
```


6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand All @@ -13,7 +13,7 @@
},
"extra": {
"oxideshop": {
"target-directory": "osc/cliexportimport",
"target-directory": "osc/exportimport-tools",
"blacklist-filter": [
"resources/**/*",
"tests/**/*"
Expand All @@ -34,7 +34,7 @@
},
"autoload": {
"psr-4": {
"OxidSolutionCatalysts\\CliExportImport\\": "src/"
"OxidSolutionCatalysts\\ExportImportTools\\": "src/"
}
},
"minimum-stability": "dev",
Expand Down
4 changes: 2 additions & 2 deletions services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
10 changes: 5 additions & 5 deletions src/Command/DBExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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/'
);
}

Expand Down
10 changes: 5 additions & 5 deletions src/Command/DBImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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/'
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Import.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace OxidSolutionCatalysts\CliExportImport\Core;
namespace OxidSolutionCatalysts\ExportImportTools\Core;

use OxidSolutionCatalysts\CliExportImport\Traits\PdoMethods;
use OxidSolutionCatalysts\ExportImportTools\Traits\PdoMethods;
use PDO;
use PDOException;
use Exception;
Expand Down
4 changes: 2 additions & 2 deletions src/Traits/CommonMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -79,7 +79,7 @@ protected function getYamlConfigPath(): string
return $this->getRealPath(
"var" . DIRECTORY_SEPARATOR .
"configuration" . DIRECTORY_SEPARATOR .
"cliexportimport" . DIRECTORY_SEPARATOR,
"exportimport-tools" . DIRECTORY_SEPARATOR,
false
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/PdoMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2f667d7

Please sign in to comment.