Skip to content

Commit

Permalink
Release 1.200.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dgafka authored and github-actions[bot] committed Oct 23, 2023
1 parent 24b8a32 commit d419ffe
Show file tree
Hide file tree
Showing 142 changed files with 272 additions and 285 deletions.
4 changes: 2 additions & 2 deletions packages/Amqp/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"require": {
"ext-amqp": "*",
"ecotone/enqueue": "~1.109.2",
"ecotone/enqueue": "~1.200.0",
"enqueue/amqp-ext": "^0.10.18",
"enqueue/dsn": "^0.10.4",
"enqueue/enqueue": "^0.10.0"
Expand All @@ -63,7 +63,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.109.2-dev"
"dev-main": "1.200.0-dev"
},
"ecotone": {
"repository": "amqp"
Expand Down
2 changes: 1 addition & 1 deletion packages/Amqp/src/AmqpInboundChannelAdapterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
use Ecotone\Enqueue\EnqueueHeader;
use Ecotone\Enqueue\EnqueueInboundChannelAdapterBuilder;
use Ecotone\Enqueue\InboundMessageConverter;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Messaging\Conversion\ConversionService;
use Ecotone\Messaging\MessageConverter\DefaultHeaderMapper;
Expand Down
2 changes: 1 addition & 1 deletion packages/Amqp/src/AmqpOutboundChannelAdapterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
use Ecotone\Enqueue\CachedConnectionFactory;
use Ecotone\Enqueue\EnqueueOutboundChannelAdapterBuilder;
use Ecotone\Messaging\Channel\PollableChannel\Serialization\OutboundMessageConverter;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Messaging\Conversion\ConversionService;

Expand Down
6 changes: 0 additions & 6 deletions packages/Amqp/tests/Configuration/AmqpModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,25 @@

namespace Test\Ecotone\Amqp\Configuration;

use Doctrine\Common\Annotations\AnnotationException;
use Ecotone\Amqp\AmqpAdmin;
use Ecotone\Amqp\AmqpBackedMessageChannelBuilder;
use Ecotone\Amqp\AmqpBinding;
use Ecotone\Amqp\AmqpExchange;
use Ecotone\Amqp\AmqpQueue;
use Ecotone\Amqp\Configuration\AmqpModule;
use Ecotone\AnnotationFinder\InMemory\InMemoryAnnotationFinder;
use Ecotone\Messaging\Config\Configuration;
use Ecotone\Messaging\Config\ConfigurationException;
use Ecotone\Messaging\Config\ConfiguredMessagingSystem;
use Ecotone\Messaging\Config\InMemoryModuleMessaging;
use Ecotone\Messaging\Config\MessagingSystemConfiguration;
use Ecotone\Messaging\Config\ModuleReferenceSearchService;
use Ecotone\Messaging\Config\ServiceConfiguration;
use Ecotone\Messaging\Conversion\ArrayToJson\ArrayToJsonConverterBuilder;
use Ecotone\Messaging\Conversion\MediaType;
use Ecotone\Messaging\Handler\InMemoryReferenceSearchService;
use Ecotone\Messaging\Handler\InterfaceToCallRegistry;
use Ecotone\Messaging\MessagingException;
use Ecotone\Messaging\PollableChannel;
use Ecotone\Messaging\Support\InvalidArgumentException;
use Ecotone\Messaging\Support\MessageBuilder;
use Enqueue\AmqpExt\AmqpConnectionFactory;
use ReflectionException;
use Test\Ecotone\Amqp\AmqpMessagingTest;

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/Dbal/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
},
"require": {
"ecotone/enqueue": "~1.109.2",
"ecotone/enqueue": "~1.200.0",
"enqueue/dbal": "^0.10.17",
"doctrine/dbal": "^2.12.0|^3.0"
},
Expand All @@ -54,7 +54,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.109.2-dev"
"dev-main": "1.200.0-dev"
},
"ecotone": {
"repository": "dbal"
Expand Down
2 changes: 1 addition & 1 deletion packages/Dbal/src/DbalInboundChannelAdapterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use Ecotone\Enqueue\EnqueueHeader;
use Ecotone\Enqueue\EnqueueInboundChannelAdapterBuilder;
use Ecotone\Enqueue\InboundMessageConverter;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Messaging\Conversion\ConversionService;
use Ecotone\Messaging\MessageConverter\DefaultHeaderMapper;
Expand Down
2 changes: 1 addition & 1 deletion packages/Dbal/src/DbalOutboundChannelAdapterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Ecotone\Enqueue\CachedConnectionFactory;
use Ecotone\Enqueue\EnqueueOutboundChannelAdapterBuilder;
use Ecotone\Messaging\Channel\PollableChannel\Serialization\OutboundMessageConverter;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Messaging\Conversion\ConversionService;
use Enqueue\Dbal\DbalConnectionFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Ecotone\Dbal\DbalReconnectableConnectionFactory;
use Ecotone\Enqueue\CachedConnectionFactory;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\InterfaceToCallReference;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Messaging\Conversion\ConversionService;
use Ecotone\Messaging\Handler\InputOutputMessageHandlerBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Ecotone\Dbal\DocumentStore;

use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Modelling\RepositoryBuilder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace Ecotone\Dbal\ObjectManager;

use Doctrine\Persistence\ManagerRegistry;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Modelling\RepositoryBuilder;
use Enqueue\Dbal\ManagerRegistryConnectionFactory;
Expand Down
2 changes: 1 addition & 1 deletion packages/Dbal/src/Recoverability/DbalDeadLetterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Ecotone\Dbal\DbalReconnectableConnectionFactory;
use Ecotone\Enqueue\CachedConnectionFactory;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\InterfaceToCallReference;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Messaging\Conversion\ConversionService;
use Ecotone\Messaging\Gateway\MessagingEntrypoint;
Expand Down
2 changes: 1 addition & 1 deletion packages/Ecotone/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.109.2-dev"
"dev-main": "1.200.0-dev"
},
"ecotone": {
"repository": "ecotone"
Expand Down
2 changes: 1 addition & 1 deletion packages/Ecotone/src/Lite/EcotoneLite.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private static function prepareConfiguration(ContainerInterface|array $container
$definitionHolder = unserialize(file_get_contents($messagingSystemCachePath));
}

if (!$definitionHolder) {
if (! $definitionHolder) {
$messagingConfiguration = MessagingSystemConfiguration::prepare(
$pathToRootCatalog,
$configurationVariableService,
Expand Down
6 changes: 4 additions & 2 deletions packages/Ecotone/src/Lite/InMemoryContainerImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
use Psr\Log\NullLogger;
use ReflectionMethod;

use function str_starts_with;

class InMemoryContainerImplementation implements ContainerImplementation
{
public const ALIAS_PREFIX = 'ecotone.testing.';
Expand Down Expand Up @@ -56,9 +58,9 @@ private function resolveArgument(mixed $argument, ContainerBuilder $builder): mi
return $this->resolveReference($argument, $builder);
} else {
if (is_object($argument) && ! ($argument instanceof DefinedObject)) {
if (! \str_starts_with(get_class($argument), 'Test\\')) {
if (! str_starts_with(get_class($argument), 'Test\\')) {
// We accept only not-dumpable instances from the 'Test\' namespace
throw new InvalidArgumentException("Argument is not a self defined object: " . get_class($argument));
throw new InvalidArgumentException('Argument is not a self defined object: ' . get_class($argument));
}
}
return $argument;
Expand Down
2 changes: 1 addition & 1 deletion packages/Ecotone/src/Lite/LazyInMemoryContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ private function resolveReference(Reference $reference): mixed
}
throw new InvalidArgumentException("Reference {$id} was not found in definitions");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace Ecotone\Lite\Test\Configuration;

use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Modelling\InMemoryEventSourcedRepository;
use Ecotone\Modelling\InMemoryStandardRepository;
use Ecotone\Modelling\RepositoryBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace Ecotone\Lite\Test\Configuration;

use Ecotone\Messaging\Channel\ChannelInterceptorBuilder;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Messaging\Conversion\ConversionService;
use Ecotone\Messaging\Conversion\MediaType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
namespace Ecotone\Lite\Test\Configuration;

use Ecotone\Messaging\Channel\ChannelInterceptorBuilder;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Messaging\Precedence;
use InvalidArgumentException;

final class SpiedChannelAdapterBuilder implements ChannelInterceptorBuilder
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use Ecotone\Messaging\Channel\ChannelInterceptorBuilder;
use Ecotone\Messaging\Channel\Collector\MessageCollectorChannelInterceptor;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Messaging\Handler\Logger\LoggingHandlerBuilder;
use Ecotone\Messaging\PrecedenceChannelInterceptor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Ecotone\Messaging\Channel;

use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\DefinedObject;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Conversion\MediaType;
use Ecotone\Messaging\Endpoint\PollingConsumer\ConnectionException;
use Ecotone\Messaging\Message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace Ecotone\Messaging\Channel\PollableChannel\InMemory;

use Ecotone\Messaging\Channel\ChannelInterceptorBuilder;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\PrecedenceChannelInterceptor;

final class InMemoryQueueAcknowledgeInterceptorBuilder implements ChannelInterceptorBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use Ecotone\Messaging\Channel\ChannelInterceptorBuilder;
use Ecotone\Messaging\Config\ConfiguredMessagingSystem;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Messaging\Handler\Recoverability\RetryTemplate;
use Ecotone\Messaging\PrecedenceChannelInterceptor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace Ecotone\Messaging\Channel\PollableChannel\Serialization;

use Ecotone\Messaging\Channel\ChannelInterceptorBuilder;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Reference;
use Ecotone\Messaging\Conversion\ConversionService;
use Ecotone\Messaging\Conversion\MediaType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace Ecotone\Messaging\Channel;

use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\DefinedObjectWrapper;
use Ecotone\Messaging\Conversion\MediaType;
use Ecotone\Messaging\MessageChannel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\ModulePackageList;
use Ecotone\Messaging\Config\ModuleReferenceSearchService;
use Ecotone\Messaging\Config\RequiredReference;
use Ecotone\Messaging\Conversion\ObjectToSerialized\SerializingConverterBuilder;
use Ecotone\Messaging\Conversion\SerializedToObject\DeserializingConverterBuilder;
use Ecotone\Messaging\Conversion\StringToUuid\StringToUuidConverterBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
use Ecotone\Messaging\Channel\ChannelInterceptorBuilder;
use Ecotone\Messaging\Channel\DirectChannel;
use Ecotone\Messaging\Config\Container\ChannelReference;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Config\Container\Definition;
use Ecotone\Messaging\Config\Container\MessagingContainerBuilder;
use Ecotone\Messaging\Handler\Gateway\GatewayProxyBuilder;
use Ecotone\Messaging\Handler\Processor\MethodInvoker\MethodInterceptor;
use Ramsey\Uuid\Uuid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class ContainerDefinitionsHolder implements ContainerImplementation
/**
* @param ConsoleCommandConfiguration[] $registeredCommands
*/
public function __construct(private array $registeredCommands) {
public function __construct(private array $registeredCommands)
{

}

Expand All @@ -33,4 +34,4 @@ public function getRegisteredCommands(): array
{
return $this->registeredCommands;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ public function __construct(private string $commandName)
{
parent::__construct("console.$commandName");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public static function buildMessagingSystemInMemoryContainer(
?ContainerInterface $externalContainer = null,
?ConfigurationVariableService $configurationVariableService = null,
?ProxyFactory $proxyFactory = null,
): ConfiguredMessagingSystem
{
): ConfiguredMessagingSystem {
$containerBuilder = new ContainerBuilder();
$containerBuilder->addCompilerPass($configuration);
$containerBuilder->addCompilerPass(new RegisterInterfaceToCallReferences());
Expand All @@ -34,8 +33,7 @@ public static function buildMessagingSystemInMemoryContainer(

public static function buildDefinitionHolder(
Configuration $configuration,
): ContainerDefinitionsHolder
{
): ContainerDefinitionsHolder {
$definitionHolder = new ContainerDefinitionsHolder($configuration->getRegisteredConsoleCommands());
$ecotoneBuilder = new ContainerBuilder();
$ecotoneBuilder->addCompilerPass($configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ public function getMethodCalls(): array
{
return $this->methodCalls;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Ecotone\Messaging\Config\Container;

use function get_class;
use function is_object;
use function serialize;

/**
Expand Down Expand Up @@ -42,7 +43,7 @@ private static function isComplexArgument(mixed $attributeArguments): bool
return true;
}
}
} else if (\is_object($attributeArguments)) {
} elseif (is_object($attributeArguments)) {
return true;
}
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ public function __construct(GatewayProxyReference $gatewayProxyReference, string
{
parent::__construct("gateway.{$gatewayProxyReference->getReferenceName()}::{$methodName}");
}
}
}
Loading

0 comments on commit d419ffe

Please sign in to comment.