Skip to content
New issue

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

Use SplFileInfo to simplify DrupalFinder::locateRoot #4

Closed

Conversation

luenemam
Copy link

deprecate DrupalFinder::shiftPathUp, does not Work with streamWrapper on
Windows

deprecate DrupalFinder::shiftPathUp, does not Work with streamWrapper on
Windows
@webflo
Copy link
Owner

webflo commented Nov 15, 2016

Interesting, locateRoot and shiftPathUp is from Drush (https://github.com/drush-ops/drush/blob/2b44148ad876b6108dee5a7cbf5927a75b1ce02d/includes/environment.inc#L327). Could we improve the test coverage?

@webflo
Copy link
Owner

webflo commented Nov 15, 2016

I fine with removing shiftPathUp completely, because we are not 1.0 yet and it should have been private/protected in the first place.

webflo added a commit that referenced this pull request Nov 15, 2016
Use SplFileInfo to simplify DrupalFinder::locateRoot
@webflo
Copy link
Owner

webflo commented Nov 15, 2016

@luenemam please review the changes in #5

Thanks

@luenemam
Copy link
Author

luenemam commented Nov 16, 2016

Pretty old and proven code...
Just realized that this simplification just works without SplFileInfo
see luenemam/drupal-finder/blob/simplify-locateRoot/src/DrupalFinder.php

will continue on #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants