Skip to content

Conversation

@mxr576
Copy link

@mxr576 mxr576 commented Mar 11, 2024

Extra handling in connection with jhedstrom/DrupalDriver#272 and the proposed change in jhedstrom/DrupalDriver#273.

$container->setParameter('drupal.driver.drush.alias', $config['drush']['alias']);

$config['drush']['binary'] = isset($config['drush']['binary']) ? $config['drush']['binary'] : 'drush';
$config['drush']['binary'] = isset($config['drush']['binary']) ? $config['drush']['binary'] : '';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should throw a RuntimeException if the binary path is not set. alternatively, it may default to vendor/bin/drush. But leaving this empty could trigger a cascade of issues that will be hard to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants