Closed 377960738 closed 2 years ago
/** * return the program execute directory * @param string $path * @return string */ function run_path(string $path = '') { static $run_path = ''; if (!$run_path) { $run_path = \is_phar() ? \dirname(\Phar::running(false)) : BASE_PATH; } return \path_combine($run_path, $path); }
# base_path 接参微调 # 原 base_path(bool $return_phar = true) # 现 base_path(string|false $path = '')
Thanks
app_path(string $path = '')
public_path(string $path = '')
config_path(string $path = '')
runtime_path(string $path = '')