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

Using absolute paths to configuration file #1

Closed
JoshuaBehrens opened this issue Jan 10, 2023 · 3 comments
Closed

Using absolute paths to configuration file #1

JoshuaBehrens opened this issue Jan 10, 2023 · 3 comments
Labels
Feature Request New feature or request

Comments

@JoshuaBehrens
Copy link
Contributor

This part always prepends the working directory to the configuration path.

$cur_dir = explode('\\', (string)getcwd());
$workingDir = $cur_dir[count($cur_dir) - 1];
return $workingDir . '/' . $configFile;

This way I can't provide an absolute path which is sometimes easier to do.

@boxblinkracer
Copy link
Owner

hi there
hehe yeah...you are totally right
didnt test that yet

its more an older copy paste thing of mine as solution for loading files from a .phar scope
there would also be solution for phar, but its not released (yet)

anyway, ill check it out

thanks for helping with this framework

@boxblinkracer boxblinkracer added the Feature Request New feature or request label Jan 10, 2023
@JoshuaBehrens
Copy link
Contributor Author

You're welcome :)

When it is a 📋 🍝 thing, you have an updated version of that trait? I can imagine a solution with an absolute path check of just use realpath to do its magic.

@boxblinkracer
Copy link
Owner

fixed right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants