我已经使用 Git 创建了一个新分支,对我的代码应用了一些更新,在我的临时服务器上检查了该分支,现在我无法运行任何与 Composer 相关的内容。
我已经在composer.json中添加了一些新的包,这些包适用于我的开发环境,但是一旦我尝试composer update
在暂存环境中,我收到与尚未下载的类相关的类未找到错误。
我试过了
composer update
composer dump-autoload
php artisan clear-compiled
php artisan dump-autoload
php artisan optimize
但一切都会导致以下错误
PHP Fatal error: Class 'Artdarek\OAuth\OAuthServiceProvider' not found in
/var/www/sites/x/bootstrap/compiled.php on line 4321
Script php artisan clear-compiled handling the
pre-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Class 'Artdarek\OAuth\OAuthServiceProvider'
not found in /var/www/sites/x/bootstrap/compiled.php
on line 4321
我还可以尝试什么才能让作曲家下载新文件?
php artisan optimize --force
该命令将重新生成/bootstrap/compiled.php
The --force
当您的环境处于调试模式时,需要 arg 来重新生成文件。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)