久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

將 Laravel 5.1 升級到 5.2 時出現致命錯誤

Fatal error while upgrading Laravel 5.1 to 5.2(將 Laravel 5.1 升級到 5.2 時出現致命錯誤)
本文介紹了將 Laravel 5.1 升級到 5.2 時出現致命錯誤的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在遵循 5.1 的官方升級指南到 5.2.第一個小節說:

I'm following the official upgrade guide from 5.1 to 5.2. First sub-section says:

如果您要安裝 Laravel 5.2 的測試版,請添加"minimum-stability": "beta" 到您的 composer.json 文件.

If you are installing a beta release of Laravel 5.2, add "minimum-stability": "beta" to your composer.json file.

更新您的 composer.json 文件以指向 laravel/framework 5.2.*.

Update your composer.json file to point to laravel/framework 5.2.*.

symfony/dom-crawler ~3.0symfony/css-selector ~3.0 添加到composer.json 文件的 require-dev 部分.

Add symfony/dom-crawler ~3.0 and symfony/css-selector ~3.0 to the require-dev section of your composer.json file.

現在,在我引入上述更改并運行 composer update 后,出現以下錯誤:

Now, after I introduce the above changes and run composer update, I get the following error(s):

PHP Fatal error:  Class 'IlluminateRoutingControllerServiceProvider' not found 
in /home/vagrant/Code/myproject/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 146

[SymfonyComponentDebugExceptionFatalErrorException]
Class 'IlluminateRoutingControllerServiceProvider' not found

[RuntimeException]
Error Output: PHP Fatal error:  Class 'IlluminateRoutingControllerServiceProvider' not found in /home/vagrant/Code/myproject/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 146

在更新完成后拋出錯誤,并發生生成自動加載文件".

The errors are thrown after the update is done, and "Generating autoload files" takes place.

可能有什么問題?

這看起來不像是自定義包問題,而是核心問題.我是否應該繼續升級指南并在所有內容都已調整以適應新框架版本后運行 composer update?

It does not look like a custom package issue, but a core one. Should I continue with the upgrade guide and run composer update AFTER all has been adjusted to suit the new framework version?

更新

之后運行 composer dump-autoload 不會拋出上述錯誤.不過還是很困惑.

Running composer dump-autoload afterwards doesn't throw the errors described above. Still confusing, though.

推薦答案

不再有IlluminateRoutingControllerServiceProvider.

如果我是你,我會將我的應用項目與 https://github.com/laravel/laravel/commits/develop 進行比較,例如,如果您查看 https://github.com/laravel/laravel/blob/develop/config/app.php 你會看到 Laravel 5.2 的默認提供者:

If I were you, I would compare my app project to https://github.com/laravel/laravel/commits/develop, if you for example look at https://github.com/laravel/laravel/blob/develop/config/app.php you will see default providers for Laravel 5.2:

IlluminateAuthAuthServiceProvider::class,
IlluminateBroadcastingBroadcastServiceProvider::class,
IlluminateBusBusServiceProvider::class,
IlluminateCacheCacheServiceProvider::class,
IlluminateFoundationProvidersConsoleSupportServiceProvider::class,
IlluminateCookieCookieServiceProvider::class,
IlluminateDatabaseDatabaseServiceProvider::class,
IlluminateEncryptionEncryptionServiceProvider::class,
IlluminateFilesystemFilesystemServiceProvider::class,
IlluminateFoundationProvidersFoundationServiceProvider::class,
IlluminateHashingHashServiceProvider::class,
IlluminateMailMailServiceProvider::class,
IlluminatePaginationPaginationServiceProvider::class,
IlluminatePipelinePipelineServiceProvider::class,
IlluminateQueueQueueServiceProvider::class,
IlluminateRedisRedisServiceProvider::class,
IlluminateAuthPasswordsPasswordResetServiceProvider::class,
IlluminateSessionSessionServiceProvider::class,
IlluminateTranslationTranslationServiceProvider::class,
IlluminateValidationValidationServiceProvider::class,
IlluminateViewViewServiceProvider::class,
/*
 * Application Service Providers...
 */
AppProvidersAppServiceProvider::class,
AppProvidersAuthServiceProvider::class,
AppProvidersEventServiceProvider::class,
AppProvidersRouteServiceProvider::class,

這篇關于將 Laravel 5.1 升級到 5.2 時出現致命錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Magento products by categories(按類別劃分的 Magento 產品)
Resource interpreted as image but transferred with MIME type text/html - Magento(資源被解釋為圖像但使用 MIME 類型 text/html 傳輸 - Magento)
Is there an event for customer account registration in Magento?(Magento 中是否有客戶帳戶注冊事件?)
Magento addFieldToFilter: Two fields, match as OR, not AND(Magento addFieldToFilter:兩個字段,匹配為 OR,而不是 AND)
quot;Error 404 Not Foundquot; in Magento Admin Login Page(“未找到錯誤 404在 Magento 管理員登錄頁面)
Get Order Increment Id in Magento(在 Magento 中獲取訂單增量 ID)
主站蜘蛛池模板: 亚洲精品久久久一区二区三区 | 国产黄色大片 | av网站免费看 | 日日艹夜夜艹 | 成人h免费观看视频 | 成人av看片| 国产一区 | 欧美在线视频免费 | 九热在线 | 欧美一区二区三区 | 国产一区在线视频 | www.97zyz.com | 老头搡老女人毛片视频在线看 | 中文字幕乱码亚洲精品一区 | 成人在线欧美 | 韩日视频在线观看 | 特黄色毛片 | 91精品国产综合久久久久久丝袜 | 亚洲国产一区视频 | 欧美乱大交xxxxx另类电影 | 久久99精品久久久 | 久久精品aaa| 草久久 | 国产亚洲精品久久久久久豆腐 | 国产精品99久久久久久动医院 | 九九在线视频 | 国产精品免费视频一区 | 国产精品一区二区三区久久 | 久久久国产精品 | aaa在线观看 | 爱爱综合网 | 91精品中文字幕一区二区三区 | 视频一区二区在线观看 | 在线视频 欧美日韩 | 黄色片视频网站 | 久久精品国产v日韩v亚洲 | 91在线视频在线观看 | 一区二区免费在线视频 | 国产视频观看 | 蜜桃视频在线观看免费视频网站www | 男人天堂网址 |