halloverden/symfony-messenger-queue-notifications-bundle

Symfony messenger queue notifications

1.2.0 2024-09-23 09:38 UTC

This package is auto-updated.

Last update: 2024-09-23 09:39:46 UTC


README

请确保已全局安装 Composer,具体请参考 Composer 文档中的安装章节

使用 Symfony Flex 的应用程序

打开命令行控制台,进入您的项目目录,并执行以下操作

$ composer require halloverden/symfony-messenger-queue-notifications-bundle

未使用 Symfony Flex 的应用程序

步骤 1:下载 Bundle

打开命令行控制台,进入您的项目目录,并执行以下命令以下载此 Bundle 的最新稳定版本

$ composer require halloverden/symfony-messenger-queue-notifications-bundle

步骤 2:启用 Bundle

然后,将 Bundle 添加到项目 config/bundles.php 文件中注册的 Bundle 列表中以启用它

// config/bundles.php

return [
    // ...
    HalloVerden\MessengerQueueNotificationsBundle\HalloVerdenMessengerQueueNotificationsBundle::class => ['all' => true],
];

步骤 3:创建和执行迁移

需要创建 event_sent 表。为此,执行以下操作

bin/console doctrine:migrations:diff
# Check if your migration is correct first.
bin/console doctrine:migrations:migrate

文档

此 Bundle 中的文档源存储在 docs/ 文件夹中

阅读文档