pantheon-systems/drupal-integrations
Composer 安装命令:
composer create-project pantheon-systems/drupal-integrations
包简介
Add this project to any Drupal distribution based on drupal/core-composer-scaffold to enable it for use on Pantheon.
README 文档
README
Add this project to any Composer-managed Drupal to enable it for use on Pantheon.
This project enables the following Pantheon/Drupal integrations:
- Injects the Pantheon database credentials for the Drupal site
- Sets the path to:
- Configuration import / export directory
- Private files
- Temporary files
- Twig cache files
- Establishes a secure, random hash salt for Drupal
- Injects the Pantheon Service Provider (clears edge cache on cache rebuild, etc.)
- Configures the trusted host patterns to avoid a warning that is not applicable to Pantheon
- Ignores large cache directories (e.g. node modules and bower components)
Enabling this project
To enable this project, it must first be added to the Drupal site:
composer require pantheon-systems/drupal-integrations:^11.1
Then, Pantheon must be enabled from within your site's settings.php file:
include \Pantheon\Integrations\Assets::dir() . "/settings.pantheon.php";
See the include-settings.php.tmpl file for additional configuration you may wish to include in your settings.php file.
Versions
Use the major version of this project that matches your Drupal version.
| Drupal Version | drupal-integrations Version |
|---|---|
| 11.x | ^11 |
| 10.x | ^10 |
| 9.x | ^9 |
| 8.x | ^8 |
Scaffolding
Early versions of this project used the project drupal/core-composer-scaffold to copy the files needed into the right locations. Starting with Drupal 10.4, the scaffold extension is deprecated, and will cause the Drupal Package Manager to refuse to allow your site to be updated if it is allowed to scaffold files in your site's root composer.json file.
If your site is still using the scaffolding feature, you will see the following error messages:
Unable to download modules via the UI: Any packages other than the implicitly allowed packages are not allowed to scaffold files. See the scaffold documentation for more information. pantheon-systems/drupal-integrations
and:
Your site cannot be automatically updated until further action is performed.
Any packages other than the implicitly allowed packages are not allowed to scaffold files. See the scaffold documentation for more information.
pantheon-systems/drupal-integrations
To fix this problem, first update to the latest version of pantheon-systems/drupal-integrations via composer update; be sure you are on version 11.1.0 or later for a Drupal 11 site, or 10.1.0 for a Drupal 10 site. Then, find the following section in your top-level composer.json file:
"drupal-scaffold": {
"locations": {
"web-root": "./web"
},
"allowed-packages": [
"pantheon-systems/drupal-integrations"
],
"file-mapping": {
"[project-root]/.editorconfig": false,
"[project-root]/pantheon.upstream.yml": false,
"[project-root]/.gitattributes": false
}
},
Delete the allowed-packages section.
Next, find the following line in your settings.php file:
include __DIR__ . "/settings.pantheon.php";
Replace that one line with the entire contents of the include-settings.php.tmpl file. Once you do this, the settings.pantheon.php file will no longer be copied into your site's configuration folder, and will instead be included directly from its installed location in the vendor directory. This should also cause the errors from the Drupal Package Manager to go away.
The above steps can be done automatically via Terminus. (Note: Requires the Terminus Composer plugin.)
$ terminus connection:set sftp
$ terminus composer update
$ terminus drush ev '\Pantheon\Integrations\Utils::stopScaffolding();'
$ terminus composer update
$ terminus env:commit --message "Stop scaffolding Pantheon's Drupal integrations, and include directly from vendor instead."
pantheon-systems/drupal-integrations 适用场景与选型建议
pantheon-systems/drupal-integrations 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.08M 次下载、GitHub Stars 达 13, 最近一次更新时间为 2020 年 01 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 pantheon-systems/drupal-integrations 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pantheon-systems/drupal-integrations 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 6.08M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 22
- 依赖项目数: 30
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-29