thruster / symfony-json-body-parser-bundle
Thruster SymfonyJsonBodyParserBundle 扩展包
1.2
2018-01-31 18:36 UTC
Requires
- php: >=7.0
- symfony/framework-bundle: ~2.3|~3.0|~4.0
Requires (Dev)
- phpunit/phpunit: ~5.1
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)
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
贡献
请参阅CONTRIBUTING和CONDUCT以获取详细信息。
许可证
请参阅许可证文件以获取更多信息。