We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The return TRUE; at DrupalFinder on line 88 stops the execution and makes $drupalRoot and $composerRoot contains the same value and $composerRoot never obtain the real path where the composer.json file is located. https://github.com/webflo/drupal-finder/blob/master/src/DrupalFinder.php#L88
return TRUE;
DrupalFinder
$drupalRoot
$composerRoot
composer.json
You can replicate by creating an example.php file containing:
example.php
use DrupalFinder\DrupalFinder; require_once 'vendor/autoload.php'; $drupalFinder = new DrupalFinder(); $drupalFinder->locateRoot('/path/to/drupal/sites/drupal.dev/web'); $drupalRoot = $drupalFinder->getDrupalRoot(); $projectRoot = $drupalFinder->getComposerRoot(); echo 'projectRoot: ' . $projectRoot . PHP_EOL; echo 'drupalRoot: ' . $drupalRoot . PHP_EOL;
and execute by php example.php and the output will be equal in both:
php example.php
projectRoot: /path/to/drupal/sites/drupal.dev/web drupalRoot: /path/to/drupal/sites/drupal.dev/web
Removing the offending line at 88 makes this works as expected.
The text was updated successfully, but these errors were encountered:
Issue #3: Fix DrupalComposerStructure fixture and tests
4dcd328
I forgot that the Drupal-Composer directory has a autoload.php as well. Fixed it in 4dcd328. Tagged 0.1.1
Sorry, something went wrong.
Thanks for taking care.
No branches or pull requests
The
return TRUE;
atDrupalFinder
on line 88 stops the execution and makes$drupalRoot
and$composerRoot
contains the same value and$composerRoot
never obtain the real path where thecomposer.json
file is located.https://github.com/webflo/drupal-finder/blob/master/src/DrupalFinder.php#L88
You can replicate by creating an
example.php
file containing:and execute by
php example.php
and the output will be equal in both:Removing the offending line at 88 makes this works as expected.
The text was updated successfully, but these errors were encountered: