1

这是我的 composer.json 文件。它安装成功:

{
    "name": "lorem-ipsum",
    "description": "Lorem Ipsum",
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.4",
        "zendframework/zendframework": "2.0.4",
        "doctrine/doctrine-module": "0.5.2",
        "doctrine/doctrine-orm-module": "0.5.3",
        "gedmo/doctrine-extensions": "2.3.1"
    },
    "require-dev": {
        "phpunit/phpunit": "3.7.9",
        "squizlabs/php_codesniffer": "1.4.2",
        "phpmd/phpmd": "1.4.0",
        "phploc/phploc": "1.7.4"
    }
}

但是当我然后运行时:

./vendor/bin/phploc

我得到错误:

PHP Fatal error:  Class 'PHPLOC_TextUI_Command' not found in /home/richard/projects/lorem-ipsum/workspace/vendor/phploc/phploc/composer/bin/phploc on line 70

我认为有一些自动加载问题。如何解决?

4

1 回答 1

1

几周前发布此提交后不久,此问题已修复- 我建议您在下一个版本之前使用 dev-master 而不是 1.7.4。

于 2012-11-22T18:20:55.157 回答