Issue #3277235: Package Manager's help text should provide a PHP snippet for setting the path to Composer in settings.php
Merged
requested to merge issue/automatic_updates-3277235:3277235-package-managers-help into 8.x-2.x
All threads resolved!
Compare changes
- Adam Globus-Hoenich authored
@@ -18,7 +18,12 @@ function package_manager_help($route_name, RouteMatchInterface $route_match) {
$output .= '<p>' . t('Package Manager is a framework for updating Drupal core and installing contributed modules and themes via Composer. It has no user interface, but it provides an API for creating a temporary copy of the current site, making changes to the copy, and then syncing those changes back into the live site.') . '</p>';
$output .= '<p>' . t("Package Manager requires Composer @version or later available as an executable, and PHP must have permission to run it. The path to the executable may be stored in config, or it will be automatically detected. To set the path to Composer, you can add the following line to settings.php: <code>\$config['package_manager.settings']['executables']['composer'] = '/full/path/to/composer';</code> Or, if using Drush, you can run the following command: <code>drush config:set package_manager.settings executables.composer /full/path/to/composer</code>", ['@version' => ComposerExecutableValidator::MINIMUM_COMPOSER_VERSION]) . ' </p>';
$output .= '<p>' . t('Package Manager requires Composer @version or later available as an executable, and PHP must have permission to run it. The path to the executable may be stored in config, or it will be automatically detected. To set the path to Composer, you can add the following line to settings.php:', ['@version' => ComposerExecutableValidator::MINIMUM_COMPOSER_VERSION]) . '</p>';