PHP code example of componenta / cqrs-transaction-cycle
1. Go to this page and download the library: Download componenta/cqrs-transaction-cycle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
componenta / cqrs-transaction-cycle example snippets
use Componenta\CQRS\Command\Middleware\TransactionMiddleware;
use Componenta\CQRS\ConfigKey;
return [
ConfigKey::COMMAND_MIDDLEWARES => [
TransactionMiddleware::class,
],
];