【文件属性】:
文件名称:ParamConverterBundle:此捆绑包为Symfony提供了附加的param转换器
文件大小:16KB
文件格式:ZIP
更新时间:2021-02-06 02:12:10
php symfony bundle symfony-bundle SymfonyPHP
参数转换器套件
该捆绑包为Symfony提供了其他参数转换器。
由于自和自是在Symfony 3.3中引入的,因此此捆绑包提供的参数转换器是多余的。 通过将服务直接注入到控制器动作中,我们可以实现几乎相同的效果。
安装
此捆绑包要求:
PHP ^ 7.0
sensio / framework-extra-bundle〜3.0
安装它的最简单方法是使用Composer:
$ composer require zalas/param-converter-bundle:^1.0
服务参数转换器
服务参数转换器调用已配置的服务,以将请求属性转换为对象。
选项:
服务-服务ID
meth
【文件预览】:
ParamConverterBundle-master
----Spec()
--------ZalasParamConverterBundleSpec.php(309B)
--------Request()
--------DependencyInjection()
----.scrutinizer.yml(509B)
----Resources()
--------config()
----phpunit.xml.dist(937B)
----Tests()
--------bootstrap.php(297B)
--------Integration()
----.travis.yml(395B)
----LICENSE(1KB)
----Request()
--------ParamConverter()
----DependencyInjection()
--------ZalasParamConverterExtension.php(675B)
----README.md(2KB)
----phpspec.yml.dist(175B)
----ZalasParamConverterBundle.php(153B)
----.gitignore(24B)
----composer.json(998B)