sonntagnacht / requestparam-bundle
简化请求数据的验证
1.1
2019-04-15 08:26 UTC
Requires
- php: >=7.0
- behat/transliterator: ^1.1
- symfony/framework-bundle: ^3.4|^4.0
Requires (Dev)
- phpunit/phpunit: 6.*
- satooshi/php-coveralls: ^2.0
README
RequestParamBundle 是一种简化验证请求数据并使用 IDE 中的自动完成请求数据的方法。
安装
运行 composer require sonntagnacht/requestparam-bundle
在您的 Symfony 项目中使用 SNRequestParamBundle。
配置
AppKernel.php
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\SecurityBundle(), new Symfony\Bundle\TwigBundle\TwigBundle(), // ... new SN\RequestParamBundle\SNRequestParamBundle(), // ... return $bundles; } // ... }