Allow plugins to be symlinks

This change makes sure that plugins can be loaded even though they are symlinks. The change makes it easier to have custom schemes to handle version control with zero-downtime deployment.
This commit is contained in:
Joel Ekström Svensson 2015-10-24 21:08:51 +02:00 committed by Joel E. Svensson
parent db5fde4749
commit 7dd0d76155
1 changed files with 3 additions and 1 deletions

View File

@ -360,7 +360,9 @@ class PluginManager
return $plugins;
}
$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dirPath));
$it = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($dirPath, RecursiveDirectoryIterator::FOLLOW_SYMLINKS)
);
$it->setMaxDepth(2);
$it->rewind();