proglab/space-transport-bundle
Composer 安装命令:
composer require proglab/space-transport-bundle
包简介
A transport for JetBrain Space for the symfony Notifier
README 文档
README
A bundle symfony for Jetbrains Space Transport in symfony notifier.
Installation
Open a command console, enter your project directory and execute:
composer require proglab/space-client-bundle
f you're not using symfony/flex, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:
return [ // ... Proglab\SpaceClientBundle\SpaceClientBundle::class => ['all' => true], ];
Copy src/Resources/config/proglab_space_transport.yaml to your config/packages/proglab_space_transport.yaml and update the space url
And finally you must add this to your .env file :
###> proglab/space-transport-bundle ### SPACE_DSN=space://{{token}}@{{host_url_space}}?channel={{default_channel}} ###< proglab/space-transport-bundle ###
Usage
The default space Channel is defined in your .env file.
use Proglab\SpaceClientBundle\SpaceTransport\SpaceNotification; $notification = new SpaceNotification('Welcome Aboard', ['chat/space']); $notification->setChannel('Xxx'); // you can override the default channel if necessary $notifier->send($notification);
统计信息
- 总下载量: 195
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-19