Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename projectionist commands into projection #410

Merged
merged 1 commit into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(
'event-sourcing:projectionist:boot',
'event-sourcing:projection:boot',
'Prepare new projections and catch up with the event store',
)]
final class ProjectionistBootCommand extends ProjectionistCommand
final class ProjectionBootCommand extends ProjectionCommand
{
public function configure(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use function is_string;

/** @interal */
abstract class ProjectionistCommand extends Command
abstract class ProjectionCommand extends Command

Check failure on line 21 in src/Console/Command/ProjectionCommand.php

View workflow job for this annotation

GitHub Actions / Backward Compatibility Check (locked, 8.2, ubuntu-latest)

Method Patchlevel\EventSourcing\Console\Command\ProjectionCommand#projectionHandler() was removed
{
public function __construct(
protected readonly Projectionist $projectionist,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(
'event-sourcing:projectionist:reactivate',
'event-sourcing:projection:reactivate',
'Reactivate failed projections',
)]
final class ProjectionistReactivateCommand extends ProjectionistCommand
final class ProjectionReactivateCommand extends ProjectionCommand
{
protected function execute(InputInterface $input, OutputInterface $output): int
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(
'event-sourcing:projectionist:rebuild',
'event-sourcing:projection:rebuild',
'Rebuild projections (remove & boot)',
)]
final class ProjectionistRebuildCommand extends ProjectionistCommand
final class ProjectionRebuildCommand extends ProjectionCommand
{
public function configure(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(
'event-sourcing:projectionist:remove',
'Delete a projection and remove it from the store',
'event-sourcing:projection:remove',
'Delete all projection and metadata',
)]
final class ProjectionistRemoveCommand extends ProjectionistCommand
final class ProjectionRemoveCommand extends ProjectionCommand
{
protected function execute(InputInterface $input, OutputInterface $output): int
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(
'event-sourcing:projectionist:run',
'Run the active projectors',
'event-sourcing:projection:run',
'Run the active projections',
)]
final class ProjectionistRunCommand extends ProjectionistCommand
final class ProjectionRunCommand extends ProjectionCommand
{
protected function configure(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
use function array_map;

#[AsCommand(
'event-sourcing:projectionist:status',
'event-sourcing:projection:status',
'View the current status of the projections',
)]
final class ProjectionistStatusCommand extends ProjectionistCommand
final class ProjectionStatusCommand extends ProjectionCommand
{
protected function execute(InputInterface $input, OutputInterface $output): int
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(
'event-sourcing:projectionist:teardown',
'event-sourcing:projection:teardown',
'Shut down and delete the outdated projections',
)]
final class ProjectionistTeardownCommand extends ProjectionistCommand
final class ProjectionTeardownCommand extends ProjectionCommand
{
protected function execute(InputInterface $input, OutputInterface $output): int
{
Expand Down
Loading