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

#21 - Config loader changes, refactoring and cleanup #28

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

michalbiarda
Copy link
Contributor

Main change here is how config files are loaded. I switched from using __DIR__ to $_SERVER['SCRIPT_FILENAME'], because the former resolves symlinks, while the latter doesn't. Also, I removed some unnecessary paths form the output of paths collector, as they were not inline with README file.

Now when we run vendor/bin/driver or vendor/swiftottter/driver/bin/driver from project root, we are getting project root and vendor subdirectories (no matter if vendor/swiftottter/driver is symlink or not).

And when we run bin/driver from Driver root, we are getting Driver root.

I also performed some cleanup / refactoring.

@michalbiarda michalbiarda added this to the 4.0.0 milestone Jun 23, 2022
@michalbiarda michalbiarda merged commit a2a1f04 into 4.0-develop Jun 23, 2022
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