aboutcoders / notification-bundle
一个添加进程控制的 symfony 扩展包,用于 SonataNotificationBundle。
0.2.1
2016-08-29 22:36 UTC
Requires
- php: >=5.3.2
- aboutcoders/process-control-bundle: ~1.1
- sonata-project/notification-bundle: ~2.3
- symfony/symfony: ~2.7|~3.0
Requires (Dev)
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2024-09-14 18:42:17 UTC
README
一个 symfony 扩展包,为 SonataNotificationBundle 添加进程控制功能,从而允许在持续集成环境中启动/停止消息处理。
安装
遵循所需第三方扩展包的安装说明
将 AbcNotificationBundle 添加到您的 composer.json
文件
php composer.phar require aboutcoders/notification-bundle
在 AppKernel.php 类中包含扩展包
public function registerBundles() { $bundles = array( // ... new Abc\Bundle\NotificationBundle\AbcNotificationBundle(), ); return $bundles; }
按照 SonataNotificationBundle 的安装说明,您将在您的应用程序中创建或生成一个扩展自 SonataNotificationBundle 的扩展包。由于这个扩展包也扩展自 SonataNotificationBundle,因此您必须从该扩展包扩展您创建的/生成的扩展包,而不是从 SonataNotificationBundle 扩展。
class MySonataNotificationBundle extends Bundle { /** * {@inheritdoc} */ public function getParent() { return 'AbcNotificationBundle'; } }
待办事项
- 为 SonataNotificationBundle 提供一个拉取请求,允许定义自定义消息管理器/迭代器,从而使此扩展包过时。