久久久久久久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 | 久久中文字幕电影 | 视频1区2区 | 91精品国产综合久久香蕉922 | 日韩久久网 | 亚洲成人观看 | 欧美日韩精品一区 | 欧美一区视频 | 午夜影院在线观看免费 | 人人看人人射 | 综合久久av | 亚洲高清在线免费观看 | av片在线免费看 | 日韩电影一区二区三区 | 欧美成人一区二免费视频软件 | 久久久亚洲成人 | 国产日韩欧美精品一区二区 | 一本大道久久a久久精二百 欧洲一区二区三区 | 播放一级毛片 | 成人免费视频一区 | 毛片软件 | 一区二区三区精品视频 | 中国黄色毛片视频 | 久久国产综合 | 亚洲欧美日韩精品久久亚洲区 | 荷兰欧美一级毛片 | 日韩欧美在线不卡 | 日韩成人在线免费视频 | 91视频在线 | 精品1区|