feat: replace *Service suffix with role-based class names

This commit is contained in:
Björn Fromme
2026-04-16 13:34:54 +02:00
parent 0d2cc5b998
commit d1c92f2957
88 changed files with 435 additions and 435 deletions
@@ -5,7 +5,7 @@ declare(strict_types=1);
namespace App\Command;
use App\BusProNet\XmlLoader\TravelLoader;
use App\Service\TravelSnapshotService;
use App\Service\TravelSnapshotManager;
use Psr\Log\LoggerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
@@ -30,7 +30,7 @@ class BpnRefreshTravelSnapshotCommand extends Command
use LockableTrait;
public function __construct(
private readonly TravelSnapshotService $snapshotService,
private readonly TravelSnapshotManager $snapshotService,
private readonly LoggerInterface $logger,
private readonly TravelLoader $travelLoader,
) {
+4 -4
View File
@@ -6,8 +6,8 @@ namespace App\Command;
use App\BusProNet\Model\XmlExportInfo;
use App\BusProNet\XmlLoader\TravelLoader;
use App\Service\TravelDataService;
use App\Service\TravelSnapshotService;
use App\Service\TravelDataProvider;
use App\Service\TravelSnapshotManager;
use League\Flysystem\FilesystemException;
use League\Flysystem\FilesystemOperator;
use League\Flysystem\StorageAttributes;
@@ -41,8 +41,8 @@ class BpnXmlSyncCommand extends Command
private readonly CacheInterface $cache,
private readonly LoggerInterface $logger,
private readonly TravelLoader $travelLoader,
private readonly TravelDataService $travelDataService,
private readonly TravelSnapshotService $snapshotService,
private readonly TravelDataProvider $travelDataService,
private readonly TravelSnapshotManager $snapshotService,
) {
parent::__construct();
}
@@ -6,7 +6,7 @@ namespace App\Command;
use App\BusProNet\Model\Booking;
use App\Repository\BookingEditDraftRepository;
use App\Service\BookingEditDataLoaderService;
use App\Service\BookingEditDataLoader;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
@@ -23,7 +23,7 @@ class DraftBackfillBookingNumberCommand extends Command
{
public function __construct(
private readonly BookingEditDraftRepository $draftRepository,
private readonly BookingEditDataLoaderService $dataLoader,
private readonly BookingEditDataLoader $dataLoader,
private readonly EntityManagerInterface $entityManager,
) {
parent::__construct();