Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACMS-1890: Validate new DRS plugin with BLT #4709

Merged
merged 11 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"composer-plugin-api": "^2.0",
"composer-runtime-api": "^2.0",
"acquia/drupal-environment-detector": "^1.5.3",
"acquia/drupal-recommended-settings": "^1",
"consolidation/comments": "^1.0",
"consolidation/config": "^2.0.0",
"consolidation/robo": "^4",
Expand Down Expand Up @@ -67,7 +68,8 @@
],
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
"dealerdirect/phpcodesniffer-composer-installer": true,
"acquia/drupal-recommended-settings": true
chandan-singh7929 marked this conversation as resolved.
Show resolved Hide resolved
},
"php": "8",
"platform": {
Expand Down
82 changes: 74 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,50 @@ Acquia has announced the end of life for BLT. For more details, see https://gith

PHP 8.2, Drush 12, and Drupal 10 support is unstable.

## Steps to use Acquia Drupal Recommended Settings with BLT.

- Update the BLT plugin to the latest release, which includes acquia/drupal-recommended-settings OOTB.
```
composer update acquia/blt -W
```

### Manual Process:

- Remove BLT reference from settings.php file located at `/docroot/sites/<site-name>/settings.php`.
```diff
- require DRUPAL_ROOT . "/../vendor/acquia/blt/settings/blt.settings.php";
- /**
- * IMPORTANT.
- *
- * Do not include additional settings here. Instead, add them to settings
- * included by `blt.settings.php`. See BLT's documentation for more detail.
- *
- * @link https://docs.acquia.com/blt/
- */
+ require DRUPAL_ROOT . "/../vendor/acquia/drupal-recommended-settings/settings/acquia-recommended.settings.php";
+ /**
+ * IMPORTANT.
+ *
+ * Do not include additional settings here. Instead, add them to settings
+ * included by `acquia-recommended.settings.php`. See Acquia's documentation for more detail.
+ *
+ * @link https://docs.acquia.com/
+ */
```

- Update `default.local.settings.php` and `local.settings.php` to use the
Environment Detector provided by this DSR plugin instead of BLT:
```diff
- use Acquia\Blt\Robo\Common\EnvironmentDetector;
+ use Acquia\Drupal\RecommendedSettings\Helpers\EnvironmentDetector;
```

### Automated Process:
- Use migrate command provided in BLT.
```
./vendor/bin/blt blt:migrate
```

# License

Copyright (C) 2020 Acquia, Inc.
Expand Down
151 changes: 0 additions & 151 deletions settings/blt.settings.php

This file was deleted.

16 changes: 0 additions & 16 deletions settings/cache.settings.php

This file was deleted.

Loading
Loading