diff --git a/packages/Ecotone/src/Messaging/Config/LazyConfiguredMessagingSystem.php b/packages/Ecotone/src/Messaging/Config/LazyConfiguredMessagingSystem.php index 1edea3d39..98986776f 100644 --- a/packages/Ecotone/src/Messaging/Config/LazyConfiguredMessagingSystem.php +++ b/packages/Ecotone/src/Messaging/Config/LazyConfiguredMessagingSystem.php @@ -5,12 +5,11 @@ use Ecotone\Messaging\Endpoint\ExecutionPollingMetadata; use Ecotone\Messaging\MessageChannel; use Ecotone\Messaging\MessagePublisher; -use Ecotone\Messaging\Support\Assert; use Ecotone\Modelling\CommandBus; use Ecotone\Modelling\DistributedBus; use Ecotone\Modelling\EventBus; use Ecotone\Modelling\QueryBus; -use Psr\Container\ContainerInterface; +use InvalidArgumentException; /** * configured messaging system is set up on boot, so in case of fetching it during initialization we need to provide lazy config @@ -95,8 +94,8 @@ public function replaceWith(ConfiguredMessagingSystem $messagingSystem): void private function getConfiguredSystem(): ConfiguredMessagingSystem { - if (!$this->configuredMessagingSystem) { - throw new \InvalidArgumentException("Configured messaging system was not set"); + if (! $this->configuredMessagingSystem) { + throw new InvalidArgumentException('Configured messaging system was not set'); } return $this->configuredMessagingSystem; } diff --git a/packages/Ecotone/tests/Lite/EcotoneLiteTest.php b/packages/Ecotone/tests/Lite/EcotoneLiteTest.php index 860eff0d5..43b458cdd 100644 --- a/packages/Ecotone/tests/Lite/EcotoneLiteTest.php +++ b/packages/Ecotone/tests/Lite/EcotoneLiteTest.php @@ -9,6 +9,9 @@ use Test\Ecotone\Modelling\Fixture\Order\ChannelConfiguration; use Test\Ecotone\Modelling\Fixture\Order\OrderService; +/** + * @internal + */ class EcotoneLiteTest extends TestCase { public function test_it_can_run_console_command(): void @@ -18,10 +21,10 @@ public function test_it_can_run_console_command(): void [new OrderService()], ServiceConfiguration::createWithDefaults() ->withSkippedModulePackageNames(ModulePackageList::allPackages()) - ->withEnvironment("test") + ->withEnvironment('test') ); - $ecotone->runConsoleCommand("ecotone:list", []); + $ecotone->runConsoleCommand('ecotone:list', []); $this->expectNotToPerformAssertions(); } -} \ No newline at end of file +} diff --git a/packages/Laravel/src/EcotoneProvider.php b/packages/Laravel/src/EcotoneProvider.php index 660799086..6ddcc4b85 100644 --- a/packages/Laravel/src/EcotoneProvider.php +++ b/packages/Laravel/src/EcotoneProvider.php @@ -2,13 +2,13 @@ namespace Ecotone\Laravel; -use Ecotone\Lite\PsrContainerReferenceSearchService; use const DIRECTORY_SEPARATOR; +use Ecotone\Lite\PsrContainerReferenceSearchService; + use Ecotone\Messaging\Config\ConfiguredMessagingSystem; use Ecotone\Messaging\Config\ConsoleCommandResultSet; -use Ecotone\Messaging\Config\LazyConfiguredMessagingSystem; use Ecotone\Messaging\Config\MessagingSystemConfiguration; use Ecotone\Messaging\Config\ProxyGenerator; use Ecotone\Messaging\Config\ServiceConfiguration;