symfony-2.1 – 疑难解答“require_once(../ bootstrap.php.cache):无法打开流:没有这样的文件或目录”

前端之家收集整理的这篇文章主要介绍了symfony-2.1 – 疑难解答“require_once(../ bootstrap.php.cache):无法打开流:没有这样的文件或目录”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图重新部署我一直在工作的一个Symfony 2.1x项目和app_dev.PHP失败,因为它找不到app / bootstrap.PHP.cache。此文件从项目的git存储库中省略,因为我使用Symfony2的推荐.gitignore文件
# .gitignore
/app/bootstrap*

我是否正确认为app / bootstrap.PHP.cache是​​在$ PHP composer.phar安装过程中生成的?如果是这样的话,我会为你包括我的composer.json:

// composer.json
{
    "name": "symfony/framework-standard-edition","description": "The \"Symfony Standard Edition\" distribution","autoload": {
        "psr-0": { "": "src/" }
    },"require": {
        "PHP": ">=5.3.3","symfony/symfony": "2.1.*","doctrine/orm": "2.2.*","doctrine/doctrine-bundle": "dev-master","twig/extensions": "dev-master","symfony/assetic-bundle": "dev-master","symfony/swiftmailer-bundle": "dev-master","symfony/monolog-bundle": "dev-master","sensio/distribution-bundle": "dev-master","sensio/framework-extra-bundle": "dev-master","sensio/generator-bundle": "dev-master","jms/security-extra-bundle": "1.1.*","jms/di-extra-bundle": "1.0.*","ddeboer/guzzle-bundle": "dev-master","mopa/bootstrap-bundle": "dev-master","twitter/bootstrap": "master","knplabs/knp-paginator-bundle": "dev-master","knplabs/knp-menu-bundle": "dev-master","craue/formflow-bundle": "dev-master"
    },"repositories": [
        {
            "type": "package","package": {
                "version": "master","name": "twitter/bootstrap","source": {
                    "url": "https://github.com/twitter/bootstrap.git","type": "git","reference": "master"
                },"dist": {
                    "url": "https://github.com/twitter/bootstrap/zipball/master","type": "zip"
                }
            }
        }
    ],"scripts": {
        "post-install-cmd": [
            "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": [
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap","post-install-cmd": [
            "Mopa\\Bundle\\BootstrapBundle\\Composer\\ScriptHandler::postInstallSymlinkTwitterBootstrap"
        ],"post-update-cmd": [
            "Mopa\\Bundle\\BootstrapBundle\\Composer\\ScriptHandler::postInstallSymlinkTwitterBootstrap"
        ]
    },"config": {
        "bin-dir": "bin"
    },"minimum-stability": "dev","extra": {
        "symfony-app-dir": "app","symfony-web-dir": "web"
    }
}

如何生成bootstrap.PHP.cache?

解决方法

只需去你的项目,并生成它与作曲家喜欢
PHP /path/to/composer/composer.phar install
原文链接:https://www.f2er.com/bootstrap/234595.html

猜你在找的Bootstrap相关文章