alpari / messenger-bundle
将symfony/messenger组件集成到symfony 2.7+
v1.0.0
2018-11-07 14:05 UTC
Requires
- php: ~7.1
- psr/container: ^1.0
- symfony/config: ~2.7 || ~3.0 || ~4.0.0
- symfony/console: ~2.7 || ~3.0 || ~4.0.0
- symfony/dependency-injection: ~2.7 || ~3.0 || ~4.0.0
- symfony/http-kernel: ~2.7 || ~3.0 || ~4.0.0
- symfony/messenger: ^4.1.1
Requires (Dev)
- doctrine/orm: ~2.4
- phpunit/phpunit: ~7
- symfony/framework-bundle: ~2.7 || ~3.0 || ~4.0
- symfony/serializer: ~2.7 || ~3.0 || ~4.0
- symfony/validator: ~2.7 || ~3.0 || ~4.0
- symfony/yaml: ~2.7 || ~3.0 || ~4.0
Conflicts
- symfony/framework-bundle: >=4.1
This package is auto-updated.
Last update: 2024-09-14 03:40:58 UTC
README
为Messenger组件创建的包,向后兼容symfony 2.7+和<4.1的FrameworkBundle。与原始包的主要区别是,在symfony 4.1+中,必须在messenger
部分而不是framework
部分设置配置。
此版本的Bundle使用4.1+版本的symfony/messenger组件。
用法
使用composer安装包
composer require alpari/messenger-bundle
在您的AppKernel类中注册包
public function registerBundles() { $bundles = array( // ... new \Symfony\Bundle\MessengerBundle\MessengerBundle(), ); }
原始包的功能在symfony文档中有详细描述。