vim/messenger-tool

This package is abandoned and no longer maintained. The author suggests using the vim/symfony-messenger-lock package instead.

1.0.0 2021-06-13 15:44 UTC

This package is auto-updated.

Last update: 2021-07-04 10:20:36 UTC


README

composer require vim/messenger-tool

Configuration

config/packages/messenger_tool.yaml

messenger_tool:
   lock_pool: 'app.cache.messenger_lock'

config/packages/cache.yaml

framework:
  cache:
    pools:
      #...
      app.cache.messenger_lock:
        adapter: cache.adapter.redis
        default_lifetime: 2592000 # 30 days

config/packages/messenger.yaml

framework:
  messenger:
    #...
    buses:
      messenger.bus.default:
        middleware:
          - Vim\MessengerTool\Middleware\MessageIdMiddleware

api/config/bundles.php

<?php
return [
  // ...
  Vim\MessengerTool\MessengerToolBundle::class => ['all' => true],
];

Example

<?php
class TestMessage extends \Vim\MessengerTool\Message\AbstractMessage
{
}