General:
- The minimum PHP version should now be >=8.0
- Symfony components version updated to 6.0
- amphp version updated to 2.6
php-service-bus/sagas:
- Removed
SagaProvider
; - Added
SagaFinder
; - Sagas are now started with a command (a new annotation has been added -
SagaInitialHandler
); - Any dependencies registered in the DI container can now be used as handler arguments;
- Handlers can now return
Promise
orGenerator
; - Added the ability to initiate a saga with any of the message options;
-
- Previously, it was necessary to pass the saga identifier in each message. Now this can be avoided. An example of work is available in the demo application;
SagaCreated
,SagaClosed
,SagaStatusChanged
events can no longer be handled within a saga;
php-service-bus/php-service-bus:
- Changed logger ID in DI container. Now this is
Psr\Log\LoggerInterface
;
php-service-bus/argument-resolver
- Added a new component;
php-service-bus/transport
- Fixed bug with incorrect traceId;
php-service-bus/mutex
- Completely changed contract and implementation;
php-service-bus/event-sourcing
- Now the aggregate doesn't need to be saved. All work with the loaded aggregate is done inside an anonymous function;
php-service-bus/http-client
- Fixed bug with protocol version indication;
php-service-bus/message-serializer
- Completely changed contract and implementation;