我无法升级到4.1。
我已经按照文档中的升级指南进行了操作,但是当我运行composer update时,出现以下错误: 脚本php artisan clear-compiled处理返回的post-update-cmd事件,错误
PHP致命错误:调用未定义的方法 Illuminate \ Foundation \ Application :: bindShared()in /site/vendor/laravel/framework/src/Illuminate/Queue/FailConsoleServiceProvider.php 在第26行 { “错误”:{ “类型”: “的Symfony \元器件\调试\异常\ FatalErrorException”, “消息”:“呼叫 未定义的方法 照亮\基金会\应用:: bindShared()”, “文件”: “/网站/供应商/ laravel /框架/ src目录/照亮/队列/ FailConsoleServiceProvider.php”, “线”:26}}脚本 php artisan clear-compiled处理返回的post-update-cmd事件 有错误
[RuntimeException的]
错误输出:PHP致命错误:调用未定义的方法 在/ site / vendor中照亮\ Foundat ion \ Application :: bindShared() /laravel/framework/src/Illuminate/Queue/FailConsoleServiceProvider.php 在l ine 26
但是,如果我创建一个新项目并使用相同的composer.json文件,它将成功运行。
有人能指出我正确的方向吗?
以下是我的composer.json文件的内容:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.1.*",
"anahkiasen/html-object": "dev-master",
"anahkiasen/former": "dev-master",
"laravelbook/ardent": "dev-master",
"nesbot/Carbon": "*",
"jasonlewis/basset": "dev-master",
"robclancy/presenter": "1.1.*",
"way/generators": "dev-master",
"baum/baum": "dev-develop",
"loic-sharma/profiler": "1.1.*",
"thapp/jitimage": "dev-master",
"way/generators": "dev-master",
"jasonlewis/basset": "dev-master",
"cartalyst/sentry": "2.0.*",
"edvinaskrucas/notification": "1.*",
"laravelbook/ardent": "dev-master",
"orangehill/iseed": "dev-master",
"greggilbert/recaptcha": "dev-master",
"zizaco/factory-muff": "dev-master",
"mockery/mockery": "dev-master",
"way/phpunit-wrappers": "dev-master"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "dev"
}
答案 0 :(得分:2)
快速更新。我现在已经开始工作了。我的workbench目录中有一些包,每个包都有自己的composer.json文件。我必须将require部分更新为:
"require": {
"php": ">=5.3.0",
"illuminate/support": "4.*"
},