moee / sns-autoconfirm-bundle
使用Symfony自动确认AWS SNS HTTP(s)端点的订阅(alpha版本)
0.0.2-alpha
2017-01-19 12:19 UTC
Requires
- doctrine/annotations: ^1.3
- symfony/dependency-injection: ^3.2
- symfony/http-kernel: ^3.2
This package is not auto-updated.
Last update: 2024-09-29 02:07:42 UTC
README
使用Symfony自动确认AWS SNS HTTP(s)订阅消息
警告:目前不要在生产环境中使用。
这是一个处于alpha阶段的实验性概念。它缺少签名验证,因此不安全。您可以自由地尝试和扩展它,但请勿在生产环境中使用。
使用方法
1. 添加包
composer require moee/sns-autoconfirm-bundle
2. 将Bundle添加到您的应用中
new Moee\SnsAutoconfirmBundle\MoeeSnsAutoconfirmBundle()
3. 注释端点
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Moee\SnsAutoconfirmBundle\Annotation\SnsEndpoint;
class ExampleController
{
/**
* @Route("/", name="index")
* @SnsEndpoint
*/
public function indexAction()
{
/* ... */
}
}
如果您现在将此路由添加为AWS可访问的端点的SNS HTTP(s)端点,那么它将自动确认订阅。