Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/293.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 运行Composer更新时出现恼人的Sensio分发包警告_Php_Symfony_Composer Php - Fatal编程技术网

Php 运行Composer更新时出现恼人的Sensio分发包警告

Php 运行Composer更新时出现恼人的Sensio分发包警告,php,symfony,composer-php,Php,Symfony,Composer Php,运行$composer update时,我不断收到以下警告: PHP警告:文件_get_contentsapp/bootstrap.cache:无法打开流:第176行的/home/kevin/www/project1/vendor/sensio/distribution bundle/sensio/bundle/DistributionBundle/Composer/ScriptHandler.PHP中没有此类文件或目录 PHP堆栈跟踪: PHP1。{main}/home/kevin/www/p

运行$composer update时,我不断收到以下警告:

PHP警告:文件_get_contentsapp/bootstrap.cache:无法打开流:第176行的/home/kevin/www/project1/vendor/sensio/distribution bundle/sensio/bundle/DistributionBundle/Composer/ScriptHandler.PHP中没有此类文件或目录 PHP堆栈跟踪: PHP1。{main}/home/kevin/www/project1/vendor/sensio/distribution bundle/sensio/bundle/DistributionBundle/Resources/bin/build_bootstrap.php:0 PHP2。Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::doBuildBootstrap/home/kevin/www/project1/vendor/Sensio/distribution Bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build\u bootstrap.php:30 PHP3。文件\u get\u contents/home/kevin/www/project1/vendor/sensio/distribution bundle/sensio/bundle/DistributionBundle/Composer/ScriptHandler.php:176

警告:文件_get_contentsapp/bootstrap.cache:无法打开流:第176行的/home/kevin/www/project1/vendor/sensio/distribution bundle/sensio/bundle/DistributionBundle/Composer/ScriptHandler.php中没有此类文件或目录

调用堆栈: 0.0002 227648 1. {main}/home/kevin/www/project1/vendor/sensio/distribution bundle/sensio/bundle/DistributionBundle/Resources/bin/build_bootstrap.php:0 0.0012 445872 2. Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::doBuildBootstrap/home/kevin/www/project1/vendor/Sensio/distribution Bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build\u bootstrap.php:30 0.0076 1631456 3. 文件\u get\u contents/home/kevin/www/project1/vendor/sensio/distribution bundle/sensio/bundle/DistributionBundle/Composer/ScriptHandler.php:176

以下是我可以在不违反保密协议的情况下发布的尽可能多的composer.json:

"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.4.*",
    "doctrine/orm": "~2.2,>=2.2.3",
    "doctrine/doctrine-bundle": "~1.2",
    "twig/extensions": "~1.0",
    "symfony/assetic-bundle": "~2.3",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~2.3",
    "sensio/framework-extra-bundle": "~3.0",
    "sensio/generator-bundle": "~2.3",
    "incenteev/composer-parameter-handler": "~2.0",
    "jms/security-extra-bundle": "1.*",
    "jms/serializer-bundle": "0.13.*@dev",
    "jms/di-extra-bundle": "1.*",
    "egeloen/ckeditor-bundle": "2.*",
    "helios-ag/fm-elfinder-bundle": "1.*",
    "mollie/mollie-api-php": "1.1.x",
    "mailchimp/mailchimp": "dev-master",
    "stof/doctrine-extensions-bundle": "~1.1@dev",
    "friendsofsymfony/user-bundle": "2.0.*@dev",
    "friendsofsymfony/rest-bundle": "1.3.*",
    "uecode/api-key-bundle": "dev-master"
},
"scripts": {
    "post-install-cmd": [
        "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
    ],
    "post-update-cmd": [
        "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
    ]
},
"config": {
    "bin-dir": "bin"
},
"minimum-stability": "dev",
"extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web",
    "incenteev-parameters": {
        "file": "app/config/parameters.yml",
        "keep-outdated": true
    }
}

有什么想法吗?

这种情况偶尔发生,我必须手动删除缓存的文件夹 /app/cache/dev | prod{dev|u old或其他什么}


或者只是简单地运行php应用程序/控制台缓存:clear

无论我是否清除缓存,它都会在编写器更新时发生