这是我的 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
我认为有一些自动加载问题。如何解决?