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
I don't like how an "invalid" runtime directory is unliked at the moment (https://github.com/dnoegel/php-xdg-base-dir/blob/master/src/Xdg.php#L105).
unliked
Instead I would like to throw an exception like throw new RuntimeException('Unsecure Runtime dir'). See also this example: https://github.com/o11c/rust-xdg/blob/master/src/xdg.rs#L52
throw new RuntimeException('Unsecure Runtime dir')
public function getRuntimeDir($strict=true) could become public function getRuntimeDir($create = true, $forceSecure = true).
public function getRuntimeDir($strict=true)
public function getRuntimeDir($create = true, $forceSecure = true)
Feedback welcome.
The text was updated successfully, but these errors were encountered:
I tend to agree. I wouldn't want something deleting things on my filesystem when I expect it to be mostly readonly.
Sorry, something went wrong.
No branches or pull requests
I don't like how an "invalid" runtime directory is
unliked
at the moment (https://github.com/dnoegel/php-xdg-base-dir/blob/master/src/Xdg.php#L105).Instead I would like to throw an exception like
throw new RuntimeException('Unsecure Runtime dir')
.See also this example: https://github.com/o11c/rust-xdg/blob/master/src/xdg.rs#L52
public function getRuntimeDir($strict=true)
could becomepublic function getRuntimeDir($create = true, $forceSecure = true)
.Feedback welcome.
The text was updated successfully, but these errors were encountered: