Closed michalbundyra closed 8 years ago
Here's a slightly different version: https://gist.github.com/weierophinney/7b9628281b562ddb25a134fd9f71c62c
This version takes into account differing directory separators when doing the PCRE operation. It also moves the logic into a separate method so as to keep the getVersionsByModule()
method cleaner.
This path fixes detecting version for modules with autoloading:
The second one, in particular, was unable to detect available versions due to a difference in where the
Module
class is stored in the module tree.