0
我有一個複雜的設置,其中即時通訊使用MSYS2
(與cygwin
相同),並且我已經從windows系統加載作曲者,當autoload _real.php
進入供應商文件夾。路徑斜槓問題 - 作曲家在win mintty詞條上運行
這是路徑,我相信錯誤的來源直接關係到路徑被反斜槓,然後正斜槓。
Fatal error: composerRequire13a8867c9869fbff9e601f6ade4acdee(): Failed opening required 'C:\Users\xxx\Documents\projects\project1\vendor\composer/../laravel/framework/src/Illuminate/Support/helpers.php' (include_path='.;C:\php\pear')
echo $PATH
~/.config/composer/vendor/bin:/home/me/bin:/c/Users/me/AppData/Roaming/npm:/cygdrive/c/Users/me/AppData/Roaming/Composer/vendor/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Program Files (x86)/PHP/v5.6:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Windows/CCM:/c/Windows/CCM:/c/Windows/CCM:/c/Program Files/Dell/Dell Data Protection/Drivers/TSS/bin:/c/Program Files/Dell/Dell Data Protection/Encryption:/c/Program Files/nodejs:/c/Users/me/AppData/Local/atom/bin:/c/Users/me/AppData/Roaming/npm:/c/Users/me/AppData/Local/Programs/Git/cmd:/c/Users/me/AppData/Local/Programs/Git/mingw64/bin:/c/Users/me/AppData/Local/Programs/Git/usr/bin:/c/Users/me/AppData/Local/ComposerSetup/bin:/c/Users/me/AppData/Roaming/Composer/vendor/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
$ which composer
/home/me/bin/composer
問題:
- 有誰知道我能做些什麼,以獲得斜線矯正?
- 可能我的路徑中的重疊作曲家是問題,還是系統只是看最後一個?
櫃面有人想看到什麼autoload_real.php其實就是做,繼承人的方法。
function composerRequire4eee5c98214f71aca8f1a9103a64ab95($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
}
}