diff --git a/composer.json b/composer.json index 8a1c509a..3345faab 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ ], "require": { "php": "~8.1.0 || ~8.2.0 || ~8.3.0", - "patchlevel/event-sourcing": "3.0.0-rc16", + "patchlevel/event-sourcing": "3.0.0-rc17", "symfony/cache": "^6.4.0|^7.0.0", "symfony/config": "^6.4.0|^7.0.0", "symfony/console": "^6.4.1|^7.0.1", diff --git a/composer.lock b/composer.lock index a888fbbc..55b62f1e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8cd383a6da82c910a1c60f4d7d74bc35", + "content-hash": "aa23827c7dc461e9a25700fc6f21b42d", "packages": [ { "name": "brick/math", @@ -411,16 +411,16 @@ }, { "name": "patchlevel/event-sourcing", - "version": "3.0.0-rc16", + "version": "3.0.0-rc17", "source": { "type": "git", "url": "https://github.com/patchlevel/event-sourcing.git", - "reference": "83a4979f90abf0dcfce6bed363fb0e5175b18332" + "reference": "0eb52ff298fead44b4df11986f44092edcffabd2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/patchlevel/event-sourcing/zipball/83a4979f90abf0dcfce6bed363fb0e5175b18332", - "reference": "83a4979f90abf0dcfce6bed363fb0e5175b18332", + "url": "https://api.github.com/repos/patchlevel/event-sourcing/zipball/0eb52ff298fead44b4df11986f44092edcffabd2", + "reference": "0eb52ff298fead44b4df11986f44092edcffabd2", "shasum": "" }, "require": { @@ -488,9 +488,9 @@ ], "support": { "issues": "https://github.com/patchlevel/event-sourcing/issues", - "source": "https://github.com/patchlevel/event-sourcing/tree/3.0.0-rc16" + "source": "https://github.com/patchlevel/event-sourcing/tree/3.0.0-rc17" }, - "time": "2024-04-23T12:35:39+00:00" + "time": "2024-04-25T07:44:55+00:00" }, { "name": "patchlevel/hydrator", diff --git a/src/DependencyInjection/PatchlevelEventSourcingExtension.php b/src/DependencyInjection/PatchlevelEventSourcingExtension.php index 2b272ca2..3a36d656 100644 --- a/src/DependencyInjection/PatchlevelEventSourcingExtension.php +++ b/src/DependencyInjection/PatchlevelEventSourcingExtension.php @@ -29,6 +29,7 @@ use Patchlevel\EventSourcing\Console\Command\ShowAggregateCommand; use Patchlevel\EventSourcing\Console\Command\ShowCommand; use Patchlevel\EventSourcing\Console\Command\SubscriptionBootCommand; +use Patchlevel\EventSourcing\Console\Command\SubscriptionPauseCommand; use Patchlevel\EventSourcing\Console\Command\SubscriptionReactivateCommand; use Patchlevel\EventSourcing\Console\Command\SubscriptionRemoveCommand; use Patchlevel\EventSourcing\Console\Command\SubscriptionRunCommand; @@ -619,6 +620,12 @@ private function configureCommands(ContainerBuilder $container): void ]) ->addTag('console.command'); + $container->register(SubscriptionPauseCommand::class) + ->setArguments([ + new Reference(SubscriptionEngine::class), + ]) + ->addTag('console.command'); + $container->register(SubscriptionReactivateCommand::class) ->setArguments([ new Reference(SubscriptionEngine::class), diff --git a/tests/Unit/PatchlevelEventSourcingBundleTest.php b/tests/Unit/PatchlevelEventSourcingBundleTest.php index 1855bb79..0d7d7cf9 100644 --- a/tests/Unit/PatchlevelEventSourcingBundleTest.php +++ b/tests/Unit/PatchlevelEventSourcingBundleTest.php @@ -19,6 +19,7 @@ use Patchlevel\EventSourcing\Console\Command\ShowAggregateCommand; use Patchlevel\EventSourcing\Console\Command\ShowCommand; use Patchlevel\EventSourcing\Console\Command\SubscriptionBootCommand; +use Patchlevel\EventSourcing\Console\Command\SubscriptionPauseCommand; use Patchlevel\EventSourcing\Console\Command\SubscriptionReactivateCommand; use Patchlevel\EventSourcing\Console\Command\SubscriptionRemoveCommand; use Patchlevel\EventSourcing\Console\Command\SubscriptionRunCommand; @@ -476,6 +477,7 @@ public function testCommands(): void self::assertInstanceOf(DatabaseDropCommand::class, $container->get(DatabaseDropCommand::class)); self::assertInstanceOf(DebugCommand::class, $container->get(DebugCommand::class)); self::assertInstanceOf(SubscriptionBootCommand::class, $container->get(SubscriptionBootCommand::class)); + self::assertInstanceOf(SubscriptionPauseCommand::class, $container->get(SubscriptionPauseCommand::class)); self::assertInstanceOf(SubscriptionReactivateCommand::class, $container->get(SubscriptionReactivateCommand::class)); self::assertInstanceOf(SubscriptionRemoveCommand::class, $container->get(SubscriptionRemoveCommand::class));