vim/messenger-tool


Keywords
symfony 5, php 8, symfony-error-tracking
License
Other

Documentation

Installation

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
{
}