Laravel更新作曲家

时间:2016-05-10 23:40:04

标签: php composer-php laravel-5.2

我运行composer update时遇到问题。我收到这个错误:

  

[Symfony \ Component \ Debug \ Exception \ FatalErrorException]调用   undefined方法Illuminate \ Foundation \ Application :: bindShared()

     

脚本php artisan clear-compiled处理pre-update-cmd事件   返回时出错

     

[RuntimeException]错误输出:

不幸的是我无法弄清楚如何解决它。

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.2.*",
    "laravelcollective/html": "5.2.*",
    "riari/laravel-forum": "~3.0",
    "mcamara/laravel-localization": "1.1.*",
    "intervention/image": "^2.3",
    "anhskohbo/no-captcha": "2.*",
    "hootlex/laravel-friendships": "^1.0",
    "maatwebsite/excel": "~2.1.0",
    "djb/confer": "dev-master"
},
"require-dev": {
    "fzaninotto/faker": "~1.4",
    "mockery/mockery": "0.9.*",
    "phpunit/phpunit": "~4.0",
    "symfony/css-selector": "2.8.*|3.0.*",
    "symfony/dom-crawler": "2.8.*|3.0.*"
},
"autoload": {
    "classmap": [
        "database"
    ],
    "psr-4": {
        "App\\": "app/"
    },
    "files": [
        "app/Helpers.php"
    ]
},
"autoload-dev": {
    "classmap": [
        "tests/TestCase.php"
    ]
},
"scripts": {
    "post-root-package-install": [
        "php -r \"copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ],
    "post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "pre-update-cmd": [
        "php artisan clear-compiled"
    ],
    "post-update-cmd": [
        "php artisan optimize"
    ]
},
"config": {
    "preferred-install": "dist"
}

}

1 个答案:

答案 0 :(得分:0)

您使用的是illuminate/html套餐吗?通过从composer.json中删除此问题,我看到了类似的错误。

如果您也可以发布整个composer.json文件,将会很有帮助。