aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/process/php_executable_finder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/process/php_executable_finder.rs')
-rw-r--r--crates/shirabe-external-packages/src/symfony/process/php_executable_finder.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/process/php_executable_finder.rs b/crates/shirabe-external-packages/src/symfony/process/php_executable_finder.rs
index 9d04c5e..55ace18 100644
--- a/crates/shirabe-external-packages/src/symfony/process/php_executable_finder.rs
+++ b/crates/shirabe-external-packages/src/symfony/process/php_executable_finder.rs
@@ -1,7 +1,6 @@
//! ref: composer/vendor/symfony/process/PhpExecutableFinder.php
use super::executable_finder::ExecutableFinder;
-use shirabe_php_shim::{self as php};
#[derive(Debug)]
pub struct PhpExecutableFinder {
@@ -23,16 +22,16 @@ impl PhpExecutableFinder {
/// Finds The PHP executable.
pub fn find(&self, include_args: bool) -> Option<String> {
- if let Some(php) = php::getenv("PHP_BINARY").filter(|v| !v.is_empty()) {
+ if let Some(php) = shirabe_php_shim::getenv("PHP_BINARY").filter(|v| !v.is_empty()) {
let mut php = php.to_string_lossy().into_owned();
- if !php::is_executable(&php) {
+ if !shirabe_php_shim::is_executable(&php) {
match self.executable_finder.find(&php, None, &[]) {
Some(found) => php = found,
None => return None,
}
}
- if php::is_dir(&php) {
+ if shirabe_php_shim::is_dir(&php) {
return None;
}