Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37a921c

Browse files
Follow symlinks when looking for Drush extensions. (#3924)
* Follow symlinks when looking for Drush extensions. * Only follow symlinks when enabled in configuration
1 parent 6efdd4d commit 37a921c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

examples/example.drush.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ drush:
7474
# Specify a folder where Drush should store its file based caches. If unspecified, defaults to $HOME/.drush.
7575
#cache-directory: /tmp/.drush
7676

77+
# Enable to make Drush follow symlinks when searching for commandfiles. This
78+
# is typically best only done for setting up test fixtures for Drush extensions.
79+
command-follow-symlinks: false
80+
7781
# This section is for setting global options.
7882
options:
7983
# Specify the base_url that should be used when generating links.

src/Application.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ protected function commandDiscovery()
354354
$discovery
355355
->setIncludeFilesAtBase(true)
356356
->setSearchDepth(3)
357+
->followLinks($this->getConfig()->get('drush.command-follow-symlinks'))
357358
->ignoreNamespacePart('contrib', 'Commands')
358359
->ignoreNamespacePart('custom', 'Commands')
359360
->ignoreNamespacePart('src')

0 commit comments

Comments
 (0)