thruster/symfony-json-body-parser-bundle

Thruster SymfonyJsonBodyParserBundle 扩展包

1.2 2018-01-31 18:36 UTC

This package is auto-updated.

Last update: 2024-09-14 02:53:19 UTC


README

[最新版本] (https://github.com/ThrusterIO/symfony-json-body-parser-bundle/releases) [软件许可] (LICENSE) [构建状态] (https://travis-ci.org/ThrusterIO/symfony-json-body-parser-bundle) [代码覆盖率] (https://scrutinizer-ci.com/g/ThrusterIO/symfony-json-body-parser-bundle) [质量评分] (https://scrutinizer-ci.com/g/ThrusterIO/symfony-json-body-parser-bundle) [总下载量] (https://packagist.org.cn/packages/thruster/symfony-json-body-parser-bundle)

[电子邮件] (mailto:team@thruster.io)

Thruster Symfony Json Body Parser Bundle。如果请求的内容类型包含单词json,则解析JSON请求体。您可以使用路由属性_ignore_json_body禁用单个路由的解析器。

安装

通过Composer

$ composer require thruster/symfony-json-body-parser-bundle

启用Bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Thruster\Bundle\SymfonyJsonBodyParserBundle(),
        // ...
    );
}

测试

$ composer test

贡献

请参阅CONTRIBUTINGCONDUCT以获取详细信息。

许可证

请参阅许可证文件以获取更多信息。