Skip to content

Commit

Permalink
Rename ImporterService to LegacyImporterService
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Oct 6, 2023
1 parent dd8a44f commit 1aa0e00
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/ImportFromClassicCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace App\Console\Commands;

use App\Contracts\Command;
use App\Services\ImporterService;
use App\Services\LegacyImporterService;
use Illuminate\Support\Facades\Log;

class ImportFromClassicCommand extends Command
Expand All @@ -24,7 +24,7 @@ public function handle()
'table_prefix' => $this->argument('table_prefix'),
];

$importerSvc = new ImporterService();
$importerSvc = new LegacyImporterService();

$importerSvc->saveCredentials($creds);
$manifest = $importerSvc->generateImportManifest();
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/System/ImporterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace App\Http\Controllers\System;

use App\Contracts\Controller;
use App\Services\ImporterService;
use App\Services\Installer\DatabaseService;
use App\Services\LegacyImporterService;
use App\Support\Utils;
use Exception;
use Illuminate\Http\JsonResponse;
Expand All @@ -17,7 +17,7 @@ class ImporterController extends Controller
{
public function __construct(
private readonly DatabaseService $dbSvc,
private readonly ImporterService $importerSvc
private readonly LegacyImporterService $importerSvc
) {
Utils::disableDebugToolbar();
}
Expand Down
4 changes: 2 additions & 2 deletions app/Services/LegacyImporter/BaseImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Services\LegacyImporter;

use App\Services\ImporterService;
use App\Services\Installer\LoggerTrait;
use App\Services\LegacyImporterService;
use App\Utils\IdMapper;
use App\Utils\ImporterDB;
use Carbon\Carbon;
Expand Down Expand Up @@ -48,7 +48,7 @@ abstract class BaseImporter

public function __construct()
{
$importerService = app(ImporterService::class);
$importerService = app(LegacyImporterService::class);
$this->db = new ImporterDB($importerService->getCredentials());
$this->idMapper = app(IdMapper::class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;

class ImporterService extends Service
class LegacyImporterService extends Service
{
private string $CREDENTIALS_KEY = 'legacy.importer.db';

Expand Down

0 comments on commit 1aa0e00

Please sign in to comment.