定制 contao/polyfill-symfony 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

contao/polyfill-symfony

最新稳定版本:1.0.0

Composer 安装命令:

composer require contao/polyfill-symfony

包简介

Adds some Symfony resources for bundles that want to be compatible with both Symfony 4 and 5

README 文档

README

The package provides some Symfony resources for bundles that want to be compatible with both Symfony 4 and 5:

What's inside?

InputBag

The InputBag class was added to the HttpFoundation component in Symfony 5. The polyfill will save you a lot of if (class_exists(InputBag:class)) checks by providing the InputBag class in Symfony 4 as well.

TranslatorInterface

The TranslatorInterface has been moved from the Translation component to the Contracts component in Symfony 5. The polyfill restores the old interface in Symfony 5.

Scope

If you want your Contao extension to be compatible with multiple Contao versions (e.g. 4.9 to 4.13), you will also have to be compatible with both Symfony 4 and 5. Require the polyfill in your composer.json in this case.

License

Contao is licensed under the terms of the LGPLv3.

Getting support

Visit the support page to learn about the available support options.

统计信息

  • 总下载量: 71.84k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2020-12-23